Prevent a None image_hash from causing a TypeError

This commit is contained in:
moyamo 2015-11-10 20:39:25 +02:00
parent f269bf5be7
commit cb041395db

View file

@ -57,7 +57,7 @@ class Buddy():
self.owner = owner self.owner = owner
self.number = number self.number = number
self.groups = groups self.groups = groups
self.image_hash = image_hash self.image_hash = image_hash if image_hash is not None else ""
self.statusMsg = "" self.statusMsg = ""
self.lastseen = 0 self.lastseen = 0
self.presence = 0 self.presence = 0