]> sigrok.org Git - libsigrok.git/commit
bindings: Better error handling in enumeration get() function.
authorJens Steinhauser <redacted>
Tue, 7 Oct 2014 12:01:34 +0000 (14:01 +0200)
committerBert Vermeulen <redacted>
Tue, 7 Oct 2014 13:15:17 +0000 (15:15 +0200)
commit174bf146e5973cb7f11892c54972bc99e4a74eae
tree39d30cf4e09f90bd6ba38fc370cc3184173802c4
parent2eb1612d463e9232af437d9a6c1b3897da2367e9
bindings: Better error handling in enumeration get() function.

Prior to this patch a call to get() with an invalid enumeration value
would raise an exception that would, for example, terminate the python
interpreter, whereas now the exception is handled and translated into a
proper python exception.
bindings/cxx/enums.py