From 0021b077416c09dc72bef411e3768bbe87afdf56 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Fri, 19 Apr 2013 11:58:40 +0200 Subject: [PATCH] python: config_get() now returns SR_ERR_NA. --- bindings/python/sigrok/core/classes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: