Commit f7947526 authored by Dan Pascu's avatar Dan Pascu

Fixed potentially uninitialized data variable

parent e6145b72
...@@ -295,7 +295,9 @@ class ContactIcon(object): ...@@ -295,7 +295,9 @@ class ContactIcon(object):
data = base64.decodestring(pres_content.data.value) data = base64.decodestring(pres_content.data.value)
except Exception: except Exception:
return None return None
return cls(data, IconDescriptor(url, descriptor_etag or etag)) return cls(data, IconDescriptor(url, descriptor_etag or etag))
else:
return None
class PresenceSubscriptionHandler(object): class PresenceSubscriptionHandler(object):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment