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
1 changed files with 1 additions and 1 deletions

View File

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