Skip to content

Commit

Permalink
fix for py37
Browse files Browse the repository at this point in the history
  • Loading branch information
codeskyblue committed May 29, 2023
1 parent 64bece5 commit e3482f3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion adbutils/_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@
import apkutils2
import requests
from deprecation import deprecated
from PIL import Image, UnidentifiedImageError
from PIL import Image
try:
from PIL import UnidentifiedImageError
except ImportError:
# fix for py37
UnidentifiedImageError = OSError

from retry import retry

from ._adb import AdbConnection, BaseClient
Expand Down

0 comments on commit e3482f3

Please sign in to comment.