summaryrefslogtreecommitdiff
path: root/pysnmp/proto/mpmod/rfc2576.py
diff options
context:
space:
mode:
Diffstat (limited to 'pysnmp/proto/mpmod/rfc2576.py')
-rw-r--r--pysnmp/proto/mpmod/rfc2576.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pysnmp/proto/mpmod/rfc2576.py b/pysnmp/proto/mpmod/rfc2576.py
index b355868f..9c050430 100644
--- a/pysnmp/proto/mpmod/rfc2576.py
+++ b/pysnmp/proto/mpmod/rfc2576.py
@@ -292,8 +292,8 @@ class SnmpV1MessageProcessingModel(AbstractMessageProcessingModel):
debug.logger & debug.flagMP and debug.logger(
'prepareDataElements: SM returned securityEngineId %r securityName %r' % (securityEngineId, securityName))
- except error.StatusInformation:
- statusInformation = sys.exc_info()[1]
+ except error.StatusInformation as exc:
+ statusInformation = exc
snmpEngine.observer.storeExecutionContext(
snmpEngine, 'rfc2576.prepareDataElements:sm-failure',