summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorWill Thompson <will.thompson@collabora.co.uk>2011-11-17 23:50:33 +0000
committerWill Thompson <will.thompson@collabora.co.uk>2011-11-18 10:44:42 +0000
commit77f77a88c3a28a68cdbd5656912580cf2e235338 (patch)
tree174a4a7f99c7b629d5acd5831b10fcd539c75f93 /plugins
parent2622e65507e83956a2dd0b7f349135771ec8f335 (diff)
console UI: fix handling errors from SendIQ
Diffstat (limited to 'plugins')
-rwxr-xr-xplugins/telepathy-gabble-xmpp-console6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/telepathy-gabble-xmpp-console b/plugins/telepathy-gabble-xmpp-console
index 1505e2ddb..7d14e8dfe 100755
--- a/plugins/telepathy-gabble-xmpp-console
+++ b/plugins/telepathy-gabble-xmpp-console
@@ -200,11 +200,11 @@ class IQPage(Page):
def send_iq_cb(self, proxy, result, user_data):
self.stanza_viewer.clear()
- try:
+ if isinstance(result, Exception):
+ self.stanza_viewer.append_comment("error:\n%s" % result)
+ else:
reply_type, reply = result
self.stanza_viewer.append_stanza(reply)
- except Exception, e:
- self.stanza_viewer.append_comment("error:\n%s" % e)
self.result_nb.stop_spinning()