Commit f7947526 authored by Dan Pascu's avatar Dan Pascu

Fixed potentially uninitialized data variable

parent e6145b72
...@@ -296,6 +296,8 @@ class ContactIcon(object): ...@@ -296,6 +296,8 @@ class ContactIcon(object):
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