Error checking on activity UID

This commit is contained in:
Dan Williams 2006-06-13 16:01:39 -04:00
parent b92c730457
commit 55f538253c

View File

@ -126,6 +126,8 @@ class PresenceService(gobject.GObject):
self._started = True
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
# Always browse .local