diff sat/plugins/plugin_xep_0373.py @ 3954:1ab16449577b

plugin XEP-0373: typos
author Goffi <goffi@goffi.org>
date Fri, 28 Oct 2022 18:47:17 +0200
parents a92eef737703
children 4836b81c5f31
line wrap: on
line diff
--- a/sat/plugins/plugin_xep_0373.py	Fri Oct 28 18:47:17 2022 +0200
+++ b/sat/plugins/plugin_xep_0373.py	Fri Oct 28 18:47:17 2022 +0200
@@ -591,7 +591,7 @@
         with gpg.Context(home_dir=self.__home_dir, signers=signers) as c:
             try:
                 signed_data, __ = c.sign(data)
-            except gpg.error.GPGMEError as e:
+            except gpg.errors.GPGMEError as e:
                 raise GPGProviderError("Internal GPGME error") from e
             except gpg.errors.InvalidSigners as e:
                 raise GPGProviderError(
@@ -610,7 +610,7 @@
         with gpg.Context(home_dir=self.__home_dir, signers=signers) as c:
             try:
                 signature, __ = c.sign(data, mode=gpg.constants.sig.mode.DETACH)
-            except gpg.error.GPGMEError as e:
+            except gpg.errors.GPGMEError as e:
                 raise GPGProviderError("Internal GPGME error") from e
             except gpg.errors.InvalidSigners as e:
                 raise GPGProviderError(