changeset 3954:1ab16449577b

plugin XEP-0373: typos
author Goffi <goffi@goffi.org>
date Fri, 28 Oct 2022 18:47:17 +0200
parents 8179cff7ef5c
children 323017a4e4d2
files sat/plugins/plugin_xep_0373.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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(