python: config_get() now returns SR_ERR_NA.

This commit is contained in:
Uwe Hermann 2013-04-19 11:58:40 +02:00
parent ac046ef8cf
commit 0021b07741
1 changed files with 1 additions and 1 deletions

View File

@ -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: