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):
|
||||
try:
|
||||
self.im = Image.open(path)
|
||||
except (IOError, e):
|
||||
logger.warn(e)
|
||||
except IOError as e:
|
||||
logger.warning(e)
|
||||
self.im = None
|
||||
|
||||
def rotate(self, angle, resize):
|
||||
|
|
|
@ -61,7 +61,7 @@ class FileSystemStorage(object):
|
|||
f.close()
|
||||
return data
|
||||
except IOError as e:
|
||||
logger.warn(e)
|
||||
logger.warning(e)
|
||||
#'File %r cannot be read.' % fn)
|
||||
return ''
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue