summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorelie <elie>2009-05-09 21:50:05 +0000
committerelie <elie>2009-05-09 21:50:05 +0000
commit260a1d9c6b8174b47f66fd32c8a1e8a409bb3f75 (patch)
tree15a1975084c8a424cbfe264e5abd6f8dc56a5204
parentdcd735b104286a5c88802c1d7de03b7c6d852a65 (diff)
downloadpysnmp-260a1d9c6b8174b47f66fd32c8a1e8a409bb3f75.tar.gz
fix to processPdu code - SmiError type exceptions are not a mapping kind
-rw-r--r--pysnmp/entity/rfc3413/cmdrsp.py2
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