Fix activity ID generation logic

This commit is contained in:
Dan Williams 2007-04-09 15:08:04 -04:00
parent 3eeec9bf07
commit 4cf8f321f0

View File

@ -47,10 +47,9 @@ def create_activity_id():
if act_id == act.get_id(): if act_id == act.get_id():
found = True found = True
break break
if found: if not found:
raise RuntimeError("Cannot generate unique activity id.") return act_id
raise RuntimeError("Cannot generate unique activity id.")
return act_id
class ActivityCreationHandler(gobject.GObject): class ActivityCreationHandler(gobject.GObject):
__gsignals__ = { __gsignals__ = {