diff options
author | Philipp Hörist <philipp@hoerist.com> | 2019-04-02 20:53:51 +0300 |
---|---|---|
committer | Philipp Hörist <philipp@hoerist.com> | 2019-04-02 20:54:02 +0300 |
commit | 6bdd04662e78d57dc015661bcd6a396c731bd4cf (patch) | |
tree | 3e24410c398304475e7b20d7390366ee420b05a3 /nbxmpp/modules | |
parent | 414b12cb028e9c5e420a1c24ede0721309f067b6 (diff) |
OpenPGP: Fix secret key request
Diffstat (limited to 'nbxmpp/modules')
-rw-r--r-- | nbxmpp/modules/openpgp.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nbxmpp/modules/openpgp.py b/nbxmpp/modules/openpgp.py index ccd157b..db5c677 100644 --- a/nbxmpp/modules/openpgp.py +++ b/nbxmpp/modules/openpgp.py @@ -271,7 +271,7 @@ class OpenPGP: 'PGP secretkey has no data') try: - key = b64decode(data.getData(), return_type=bytes) + key = b64decode(data, return_type=bytes) except Exception as error: return raise_error(log.warning, stanza, 'stanza-malformed', str(error)) |