summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-08-05 22:24:51 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-08-05 22:24:51 +0000
commit58043c646db2bbbf5f65cb43c2d02254fdb82e60 (patch)
tree595f190be36abe4e795ae331a240c75768f448d2 /src
parentb7f87a52db0e8be80695e50ba6a19e7711c91c36 (diff)
downloadpoezio-58043c646db2bbbf5f65cb43c2d02254fdb82e60.tar.gz
poezio-58043c646db2bbbf5f65cb43c2d02254fdb82e60.tar.bz2
poezio-58043c646db2bbbf5f65cb43c2d02254fdb82e60.tar.xz
poezio-58043c646db2bbbf5f65cb43c2d02254fdb82e60.zip
oups :p
Diffstat (limited to 'src')
-rw-r--r--src/gui.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/gui.py b/src/gui.py
index 1568efca..0906c898 100644
--- a/src/gui.py
+++ b/src/gui.py
@@ -354,14 +354,14 @@ class Gui(object):
room = self.get_room_by_name('Info')
code = error.getAttr('code')
typ = error.getAttr('type')
- # if error.getTag('text'):
- # body = error.getTag('text').getData()
- # else: # No description of the error is provided in the stanza
- # # If it's a standard error, use our own messages
- if code in ERROR_AND_STATUS_CODES.keys():
- body = ERROR_AND_STATUS_CODES[code]
- else:
- body = _('Unknown error')
+ if error.getTag('text'):
+ body = error.getTag('text').getData()
+ else: # No description of the error is provided in the stanza
+ # If it's a standard error, use our own messages
+ if code in ERROR_AND_STATUS_CODES.keys():
+ body = ERROR_AND_STATUS_CODES[code]
+ else:
+ body = _('Unknown error')
self.add_message_to_room(room, _('Error: %(code)s-%(msg)s: %(body)s' %
{'msg':msg, 'code':code, 'body':body}))
if code == '401':