From: Uwe Hermann Date: Fri, 19 Apr 2013 09:58:40 +0000 (+0200) Subject: python: config_get() now returns SR_ERR_NA. X-Git-Tag: dsupstream~100 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=0021b077416c09dc72bef411e3768bbe87afdf56;p=libsigrok.git python: config_get() now returns SR_ERR_NA. --- diff --git a/bindings/python/sigrok/core/classes.py b/bindings/python/sigrok/core/classes.py index ba52e783..e51f33a6 100644 --- a/bindings/python/sigrok/core/classes.py +++ b/bindings/python/sigrok/core/classes.py @@ -152,7 +152,7 @@ class Device(object): try: check(sr_config_get(self.driver.struct, key, data, self.struct)) except Error as error: - if error.errno == SR_ERR_ARG: + if error.errno == SR_ERR_NA: raise NotImplementedError( "Device does not implement %s" % name) else: