Added exception for PIL import
This commit is contained in:
parent
9023d22e71
commit
27b393d45c
|
@ -6,7 +6,11 @@
|
||||||
@license: GPL
|
@license: GPL
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
try:
|
||||||
import Image
|
import Image
|
||||||
|
except ImportError:
|
||||||
|
from PIL import Image
|
||||||
|
|
||||||
import qrcode
|
import qrcode
|
||||||
import time
|
import time
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue