Prevent a None image_hash from causing a TypeError
This commit is contained in:
parent
f269bf5be7
commit
cb041395db
2
buddy.py
2
buddy.py
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue