From 87cb79aa71bae278fe2a907af50392e312af662d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Sat, 12 Mar 2022 00:29:03 +0100 Subject: [PATCH] plugin_e2ee: _decrypt_wrapper doesn't need a return type MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- poezio/plugin_e2ee.py | 6 +++--- 1 file 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: """