From af311a6287f49a3d33bb7c01a0d06cbaad2102ea Mon Sep 17 00:00:00 2001 From: mathieui Date: Mon, 19 Apr 2021 23:26:25 +0200 Subject: fix: do not log the whole stacktrace when a tab has no mam support --- poezio/log_loader.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/poezio/log_loader.py b/poezio/log_loader.py index 2eb04b65..8fd0ed82 100644 --- a/poezio/log_loader.py +++ b/poezio/log_loader.py @@ -334,7 +334,10 @@ class MAMFiller: 'Fetched %s messages to fill local logs for %s', len(messages), self.tab.jid, ) - except (DiscoInfoException, NoMAMSupportException, MAMQueryException): + except NoMAMSupportException: + log.debug('The entity %s does not support MAM', self.tab.jid) + return + except (DiscoInfoException, MAMQueryException): log.debug( 'Failed fetching logs for %s', self.tab.jid, exc_info=True -- cgit v1.2.3