From 89a61b84bdb29d3df8c08436c3484fddba8d2ef1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Sun, 7 Apr 2019 22:21:29 +0100 Subject: poezio/tabs/basetabs: remove safeJID call MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- poezio/tabs/basetabs.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/poezio/tabs/basetabs.py b/poezio/tabs/basetabs.py index 42a33330..a7aa9be9 100644 --- a/poezio/tabs/basetabs.py +++ b/poezio/tabs/basetabs.py @@ -522,8 +522,9 @@ class ChatTab(Tab): raise NotImplementedError def load_logs(self, log_nb: int) -> Optional[List[Dict[str, Any]]]: - logs = logger.get_logs(safeJID(self.name).bare, log_nb) - return logs + if self.name is not None: + return logger.get_logs(self.name.bare, log_nb) + return None def log_message(self, txt: str, -- cgit v1.2.3