[PATCH] python: Try to be more helpful when given a string to encrypt()

Justus Winter justus at g10code.com
Mon Dec 5 12:59:38 CET 2016

Tobias Mueller <muelli at cryptobitch.de> writes:

> * lang/python/helpers.c (_gpg_obj2gpgme_data_t): Extended error message
> * lang/python/tests/t-encrypt.py: Test for "encode" in error message
> --
> The motivation is to help the user when encrypting fails. I claim that
> it is not obvious to not being able to encrypt a string directly.
> To nudge the user into encoding it to bytes, the error message is a bit
> extended.

Merged, thanks!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 487 bytes
Desc: not available
URL: </pipermail/attachments/20161205/55633f03/attachment.sig>

More information about the Gnupg-devel mailing list