diff options
author | Maxime “pep” Buquet <pep@bouah.net> | 2019-04-07 22:21:29 +0100 |
---|---|---|
committer | Maxime “pep” Buquet <pep@bouah.net> | 2019-04-07 22:21:29 +0100 |
commit | 89a61b84bdb29d3df8c08436c3484fddba8d2ef1 (patch) | |
tree | 18104622eb3d959f3e0abb11d26d69b49b260770 | |
parent | 2d0cc092fcd154b2d14be0c5ac0ff338607824a0 (diff) | |
download | poezio-89a61b84bdb29d3df8c08436c3484fddba8d2ef1.tar.gz poezio-89a61b84bdb29d3df8c08436c3484fddba8d2ef1.tar.bz2 poezio-89a61b84bdb29d3df8c08436c3484fddba8d2ef1.tar.xz poezio-89a61b84bdb29d3df8c08436c3484fddba8d2ef1.zip |
poezio/tabs/basetabs: remove safeJID call
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
-rw-r--r-- | poezio/tabs/basetabs.py | 5 |
1 files 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, |