Properly raise NotImplementedError, prevent errors being swallowed by safeJID

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2019-02-28 00:06:31 +00:00
parent 738dfe0e9a
commit 470696063d

View file

@ -511,7 +511,7 @@ class ChatTab(Tab):
@property
def general_jid(self) -> JID:
return NotImplementedError
raise NotImplementedError
def load_logs(self, log_nb: int) -> Optional[List[Dict[str, Any]]]:
logs = logger.get_logs(safeJID(self.name).bare, log_nb)