diff options
author | elie <elie> | 2009-05-09 21:50:05 +0000 |
---|---|---|
committer | elie <elie> | 2009-05-09 21:50:05 +0000 |
commit | 260a1d9c6b8174b47f66fd32c8a1e8a409bb3f75 (patch) | |
tree | 15a1975084c8a424cbfe264e5abd6f8dc56a5204 | |
parent | dcd735b104286a5c88802c1d7de03b7c6d852a65 (diff) | |
download | pysnmp-260a1d9c6b8174b47f66fd32c8a1e8a409bb3f75.tar.gz |
fix to processPdu code - SmiError type exceptions are not a mapping kind
-rw-r--r-- | pysnmp/entity/rfc3413/cmdrsp.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pysnmp/entity/rfc3413/cmdrsp.py b/pysnmp/entity/rfc3413/cmdrsp.py index 0126b58..c1c8006 100644 --- a/pysnmp/entity/rfc3413/cmdrsp.py +++ b/pysnmp/entity/rfc3413/cmdrsp.py @@ -164,7 +164,7 @@ class CommandResponderBase: except pysnmp.smi.error.InconsistentNameError, errorIndication: errorStatus, errorIndex = 'inconsistentName', errorIndication['idx'] + 1 except pysnmp.smi.error.SmiError, errorIndication: - errorStatus, errorIndex = 'genErr', errorIndication['idx'] + 1 + errorStatus, errorIndex = 'genErr', 1 self.__sendResponse( snmpEngine, errorStatus, errorIndex, varBinds, stateReference |