python: config_get() now returns SR_ERR_NA.
This commit is contained in:
parent
ac046ef8cf
commit
0021b07741
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue