mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Removed built-in io module from try/except block
This commit is contained in:
parent
d5bbaa900e
commit
8744402efc
@ -1,11 +1,10 @@
|
|||||||
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:
|
||||||
pil_imported = False
|
pil_imported = False
|
||||||
|
Loading…
Reference in New Issue
Block a user