summaryrefslogtreecommitdiff
path: root/poezio/tabs
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2017-10-12 01:23:40 +0200
committermathieui <mathieui@mathieui.net>2017-10-12 01:23:40 +0200
commit3317604c6544a488bec749c06a52382971b60790 (patch)
treec7a8ff4b7019c6b1ab2a69f657dc4c5867ffd29c /poezio/tabs
parentb29b70da0ff89fc24b2118c047f2071edcd36384 (diff)
downloadpoezio-3317604c6544a488bec749c06a52382971b60790.tar.gz
poezio-3317604c6544a488bec749c06a52382971b60790.tar.bz2
poezio-3317604c6544a488bec749c06a52382971b60790.tar.xz
poezio-3317604c6544a488bec749c06a52382971b60790.zip
Fix some excepts (bare, useless, unused)
Diffstat (limited to 'poezio/tabs')
-rw-r--r--poezio/tabs/conversationtab.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/poezio/tabs/conversationtab.py b/poezio/tabs/conversationtab.py
index ecaac023..cc6d716d 100644
--- a/poezio/tabs/conversationtab.py
+++ b/poezio/tabs/conversationtab.py
@@ -26,6 +26,7 @@ from poezio.common import safeJID
from poezio.config import config
from poezio.decorators import refresh_wrapper
from poezio.roster import roster
+from poezio.text_buffer import CorrectionError
from poezio.theming import get_theme, dump_tuple
from poezio.decorators import command_args_parser
@@ -116,7 +117,7 @@ class ConversationTab(OneToOneTab):
self.modify_message(msg['body'], self.last_sent_message['id'], msg['id'], jid=self.core.xmpp.boundjid,
nickname=self.core.own_nick)
replaced = True
- except:
+ except CorrectionError:
log.error('Unable to correct a message', exc_info=True)
else:
del msg['replace']