diff options
author | <dafydd.harries@collabora.co.uk> | 2006-09-10 11:56:18 +0000 |
---|---|---|
committer | <dafydd.harries@collabora.co.uk> | 2006-09-10 11:56:18 +0000 |
commit | ec7ff33ad72e53f451e8ea5b7ecb7fde29a57fc2 (patch) | |
tree | 66fad80f007806c6fffe8f3789fdbd9be9e87f46 /examples/call.py | |
parent | eb0a64958cd816eb7ae6dca065eabc53f6652868 (diff) |
catch error when making audio-only streams request
Diffstat (limited to 'examples/call.py')
-rw-r--r-- | examples/call.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/examples/call.py b/examples/call.py index d44b361..2f1dd85 100644 --- a/examples/call.py +++ b/examples/call.py @@ -172,8 +172,14 @@ class OutgoingCall(Call): except dbus.DBusException, e: print "failed:", e print "requesting audio stream" - channel[CHANNEL_TYPE_STREAMED_MEDIA].RequestStreams( - self.handle, [MEDIA_STREAM_TYPE_AUDIO]); + + try: + channel[CHANNEL_TYPE_STREAMED_MEDIA].RequestStreams( + self.handle, [MEDIA_STREAM_TYPE_AUDIO]); + except dbus.DBusException, e: + print "failed:", e + print "giving up" + self.quit() class IncomingCall(Call): def status_changed_cb (self, state, reason): |