diff options
author | elie <elie> | 2012-12-13 17:02:41 +0000 |
---|---|---|
committer | elie <elie> | 2012-12-13 17:02:41 +0000 |
commit | 3b9c11ead70893d863a074b54d2df73348f5adcb (patch) | |
tree | cd31f3971097f8b0e4180eda15f07532a6d3245f /pysnmp/smi/instrum.py | |
parent | 8e3036c8029f3b65bf6b37acac6053a801d6bc05 (diff) | |
download | pysnmp-git-3b9c11ead70893d863a074b54d2df73348f5adcb.tar.gz |
SMI exceptions are supposed to carry indices of failed var-bind component
Diffstat (limited to 'pysnmp/smi/instrum.py')
-rw-r--r-- | pysnmp/smi/instrum.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pysnmp/smi/instrum.py b/pysnmp/smi/instrum.py index 986b9234..1c07a02e 100644 --- a/pysnmp/smi/instrum.py +++ b/pysnmp/smi/instrum.py @@ -7,13 +7,13 @@ __all__ = [ 'AbstractMibInstrumController', 'MibInstrumController' ] class AbstractMibInstrumController: def readVars(self, vars, acInfo=(None, None)): - raise error.NoSuchInstanceError() + raise error.NoSuchInstanceError(idx=0) def readNextVars(self, vars, acInfo=(None, None)): - raise error.EndOfMibViewError() + raise error.EndOfMibViewError(idx=0) def writeVars(self, vars, acInfo=(None, None)): - raise error.NoSuchObjectError() + raise error.NoSuchObjectError(idx=0) class MibInstrumController(AbstractMibInstrumController): fsmReadVar = { |