summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime “pep” Buquet <pep@bouah.net>2019-02-28 00:06:31 +0000
committerMaxime “pep” Buquet <pep@bouah.net>2019-02-28 00:06:36 +0000
commit470696063d152c742430a28b7d59dc93059bf4df (patch)
treefcac1452ddbe1c7d58334033037118fb287165eb
parent738dfe0e9af0e82f5e721818763a06b66f219b3b (diff)
downloadpoezio-470696063d152c742430a28b7d59dc93059bf4df.tar.gz
poezio-470696063d152c742430a28b7d59dc93059bf4df.tar.bz2
poezio-470696063d152c742430a28b7d59dc93059bf4df.tar.xz
poezio-470696063d152c742430a28b7d59dc93059bf4df.zip
Properly raise NotImplementedError, prevent errors being swallowed by safeJID
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
-rw-r--r--poezio/tabs/basetabs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/poezio/tabs/basetabs.py b/poezio/tabs/basetabs.py
index f5a4ccf0..330b9913 100644
--- a/poezio/tabs/basetabs.py
+++ b/poezio/tabs/basetabs.py
@@ -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)