python: Improve error handling.
authorJustus Winter <justus@g10code.com>
Thu, 28 Jul 2016 15:44:18 +0000 (17:44 +0200)
committerJustus Winter <justus@g10code.com>
Thu, 28 Jul 2016 15:50:07 +0000 (17:50 +0200)
commit5a7c7a86f7e8eaf10e37138617a2d838f9d4466f
tree33c5b869cb738dff167d978f8db0cd7b5b4bf261
parentb9e6eacd06ffeb36854c208aa4325cff3e3dfbbe
python: Improve error handling.

* lang/python/pyme/core.py (Context.protocol): Check that the engine
is usable before setting the protocol.
(Context._errorcheck): Add missing functions.

Signed-off-by: Justus Winter <justus@g10code.com>
lang/python/pyme/core.py