From 3317604c6544a488bec749c06a52382971b60790 Mon Sep 17 00:00:00 2001 From: mathieui Date: Thu, 12 Oct 2017 01:23:40 +0200 Subject: Fix some excepts (bare, useless, unused) --- poezio/tabs/conversationtab.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'poezio/tabs') 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'] -- cgit v1.2.3