Catch OSError when converting with Pillow

This commit is contained in:
Philipp Hörist 2017-10-20 19:09:41 +02:00
parent 2c7861bc1d
commit 456d7f87ff
1 changed files with 1 additions and 1 deletions

View File

@ -2399,7 +2399,7 @@ class Interface:
'avatar image using pillow', filename)
try:
avatar = Image.open(path).convert("RGBA")
except NameError:
except (NameError, OSError):
app.log('avatar').warning('Pillow convert failed: %s', filename)
app.log('avatar').debug('Error', exc_info=True)
return