aboutsummaryrefslogtreecommitdiffstats
path: root/lang/cpp/src/key.cpp
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2016-10-13 11:13:23 +0000
committerJustus Winter <[email protected]>2016-10-13 11:19:49 +0000
commitf526d0e22e8b881ccbca66b46a0e1b68bbc4cd6b (patch)
tree7deb5fc787f22e6104d830ca3ab4a0b72b1a07d6 /lang/cpp/src/key.cpp
parentpython: Return public keys by default. (diff)
downloadgpgme-f526d0e22e8b881ccbca66b46a0e1b68bbc4cd6b.tar.gz
gpgme-f526d0e22e8b881ccbca66b46a0e1b68bbc4cd6b.zip
python: Make 'get_key' more idiomatic.
* lang/python/pyme/core.py (Context.get_key): Raise errors.KeyNotFound if the key is not found. This error is both a KeyError for idiomatic error handling as well as a GPGMEError so we don't break existing code. * lang/python/pyme/errors.py (KeyNotFound): New class. * lang/python/tests/support.py (no_such_key): New variable. * lang/python/tests/t-keylist.py: Test the new behavior. Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions