Error checking on activity UID
This commit is contained in:
parent
b92c730457
commit
55f538253c
@ -126,6 +126,8 @@ class PresenceService(gobject.GObject):
|
|||||||
self._started = True
|
self._started = True
|
||||||
self._lock.release()
|
self._lock.release()
|
||||||
|
|
||||||
|
if activity_uid and (not type(activity_uid) == type("") or not len(activity_uid)):
|
||||||
|
raise ValueError("activity uid must be a string.")
|
||||||
self._activity_uid = activity_uid
|
self._activity_uid = activity_uid
|
||||||
|
|
||||||
# Always browse .local
|
# Always browse .local
|
||||||
|
Loading…
Reference in New Issue
Block a user