Further #GPGME python binding adventures.
gpg.Context.key_import, unlike what the docs claim, doesn't raise any Exception if you pass in the wrong kind of data, but rather just returns the string "ERROR" and neither return values nor what type of data the function expects are documented.
I continue to be amazed by how #GnuPG manages to be broken for pretty much every. single. thing.
It neither works with key objects nor with fingerprint strings.
So I'm at a complete loss on how to import keys.
I mean, I'd totally understand if some obscure subkey operations don't work easily out of the box, but holy hell GnuPG really manages to break the most basic shit continuously, all the time, in new and exciting ways.
The original server operated by the Mastodon gGmbH non-profit