summaryrefslogtreecommitdiff
path: root/examples/call.py
diff options
context:
space:
mode:
author <dafydd.harries@collabora.co.uk>2006-08-29 14:10:31 +0000
committer <dafydd.harries@collabora.co.uk>2006-08-29 14:10:31 +0000
commite4e46a007644af94134899798639541a2459da9d (patch)
tree351ab81bcdbc730ce22b55893a91a341e3ae62ff /examples/call.py
parentd961f205dfea72470f3d72c1423e0d8f02cb5077 (diff)
ignore DBus exception when calling Disconnect
Diffstat (limited to 'examples/call.py')
-rw-r--r--examples/call.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/examples/call.py b/examples/call.py
index ce5017e..737ed6f 100644
--- a/examples/call.py
+++ b/examples/call.py
@@ -116,5 +116,10 @@ if __name__ == '__main__':
conn[CONN_INTERFACE].Connect()
call = Call(conn, contact)
call.run()
- conn[CONN_INTERFACE].Disconnect()
+
+ try:
+ conn[CONN_INTERFACE].Disconnect()
+ except dbus.DBusException:
+ pass
+