From 456d7f87ffa0f1d9c3bf3fa3ca5274a1890a309c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Fri, 20 Oct 2017 19:09:41 +0200 Subject: [PATCH] Catch OSError when converting with Pillow --- gajim/gui_interface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gajim/gui_interface.py b/gajim/gui_interface.py index cc5257141..cf9274cf0 100644 --- a/gajim/gui_interface.py +++ b/gajim/gui_interface.py @@ -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