more minor Python3 fixes
This commit is contained in:
parent
12978d2389
commit
569e197609
2 changed files with 3 additions and 3 deletions
|
@ -36,8 +36,8 @@ class PILTransform(object):
|
||||||
def open(self, path):
|
def open(self, path):
|
||||||
try:
|
try:
|
||||||
self.im = Image.open(path)
|
self.im = Image.open(path)
|
||||||
except (IOError, e):
|
except IOError as e:
|
||||||
logger.warn(e)
|
logger.warning(e)
|
||||||
self.im = None
|
self.im = None
|
||||||
|
|
||||||
def rotate(self, angle, resize):
|
def rotate(self, angle, resize):
|
||||||
|
|
|
@ -61,7 +61,7 @@ class FileSystemStorage(object):
|
||||||
f.close()
|
f.close()
|
||||||
return data
|
return data
|
||||||
except IOError as e:
|
except IOError as e:
|
||||||
logger.warn(e)
|
logger.warning(e)
|
||||||
#'File %r cannot be read.' % fn)
|
#'File %r cannot be read.' % fn)
|
||||||
return ''
|
return ''
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue