diff --git a/gajim/common/connection_handlers.py b/gajim/common/connection_handlers.py index 018045b772fc7ccd810744fd389c1828b134f42f..7a40be15d193d7841a380108fde231b69b851a90 100644 --- a/gajim/common/connection_handlers.py +++ b/gajim/common/connection_handlers.py @@ -477,7 +477,7 @@ class ConnectionVcard: def _get_vcard_photo(self, vcard, jid): try: photo = vcard['PHOTO']['BINVAL'] - except (KeyError, AttributeError): + except (KeyError, AttributeError, TypeError): avatar_sha = None photo_decoded = None else: