mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Merge pull request #1873 from coder2020official/circular_import_fix
Little code style improvement in service_utils
This commit is contained in:
commit
bd94d8d91c
@ -1,13 +1,12 @@
|
|||||||
import random
|
import random
|
||||||
import string
|
import string
|
||||||
|
from io import BytesIO
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# noinspection PyPackageRequirements
|
# noinspection PyPackageRequirements
|
||||||
from PIL import Image
|
from PIL import Image
|
||||||
from io import BytesIO
|
|
||||||
|
|
||||||
pil_imported = True
|
pil_imported = True
|
||||||
except:
|
except ImportError:
|
||||||
pil_imported = False
|
pil_imported = False
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user