Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/services/presence2/presenceservice.py
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2007-02-21 12:08:40 (GMT)
committer Dan Williams <dcbw@redhat.com>2007-02-21 12:08:40 (GMT)
commiteb16219265210deed3f029aa19f4aef0efd44ce0 (patch)
treee224ce136a7cf4656c36d8f44f3b2793b9a3831f /services/presence2/presenceservice.py
parent0cd13521111fa80ecd80a5e990b3065f90ab653b (diff)
raise errors, not return them
Diffstat (limited to 'services/presence2/presenceservice.py')
-rw-r--r--services/presence2/presenceservice.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/services/presence2/presenceservice.py b/services/presence2/presenceservice.py
index 3a63287..923a6d4 100644
--- a/services/presence2/presenceservice.py
+++ b/services/presence2/presenceservice.py
@@ -57,7 +57,7 @@ class PresenceService(dbus.service.Object):
@dbus.service.method(_PRESENCE_INTERFACE, in_signature="s", out_signature="o")
def GetActivityById(self, actid):
- return NotFoundError("The activity was not found.")
+ raise NotFoundError("The activity was not found.")
@dbus.service.method(_PRESENCE_INTERFACE, out_signature="ao")
def GetBuddies(self):
@@ -65,15 +65,15 @@ class PresenceService(dbus.service.Object):
@dbus.service.method(_PRESENCE_INTERFACE, in_signature="ay", out_signature="o")
def GetBuddyByPublicKey(self, key):
- return NotFoundError("The buddy was not found.")
+ raise NotFoundError("The buddy was not found.")
@dbus.service.method(_PRESENCE_INTERFACE, out_signature="o")
def GetOwner(self):
- return NotFoundError("The owner was not found.")
+ raise NotFoundError("The owner was not found.")
@dbus.service.method(_PRESENCE_INTERFACE, in_signature="sssa{sv}", out_signature="o")
def ShareActivity(self, actid, atype, name, properties):
- return NotImplemented("not implemented yet")
+ raise NotImplementedError("not implemented yet")
def main():