diff options
author | Maxime “pep” Buquet <pep@bouah.net> | 2022-03-12 00:29:03 +0100 |
---|---|---|
committer | Maxime “pep” Buquet <pep@bouah.net> | 2022-03-16 08:09:11 +0100 |
commit | 87cb79aa71bae278fe2a907af50392e312af662d (patch) | |
tree | b9e8e565bc1f57482154e85c32c6daad4ac9475e | |
parent | 191702a185efc2c904dad9350c603cff20dcb5bb (diff) | |
download | poezio-87cb79aa71bae278fe2a907af50392e312af662d.tar.gz poezio-87cb79aa71bae278fe2a907af50392e312af662d.tar.bz2 poezio-87cb79aa71bae278fe2a907af50392e312af662d.tar.xz poezio-87cb79aa71bae278fe2a907af50392e312af662d.zip |
plugin_e2ee: _decrypt_wrapper doesn't need a return type
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
-rw-r--r-- | poezio/plugin_e2ee.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/poezio/plugin_e2ee.py b/poezio/plugin_e2ee.py index eba68769..e3e4dc75 100644 --- a/poezio/plugin_e2ee.py +++ b/poezio/plugin_e2ee.py @@ -374,13 +374,13 @@ class E2EEPlugin(BasePlugin): return None return result - async def _decrypt_wrapper(self, stanza: Message, tab: Optional[ChatTabs]) -> Optional[Message]: + async def _decrypt_wrapper(self, stanza: Message, tab: Optional[ChatTabs]) -> None: """ Wrapper around _decrypt() to handle errors and display the message after encryption. """ try: # pylint: disable=unexpected-keyword-arg - result = await self._decrypt(stanza, tab, passthrough=True) + await self._decrypt(stanza, tab, passthrough=True) except Exception as exc: jid = stanza['to'] tab = self.core.tabs.by_name_and_class(jid, ChatTab) @@ -394,7 +394,7 @@ class E2EEPlugin(BasePlugin): # TODO: display exceptions to the user properly log.error('Exception in decrypt:', exc_info=True) return None - return result + return None async def _decrypt_encryptedtag(self, stanza: Message) -> None: """ |