diff options
Diffstat (limited to 'pysnmp/entity/rfc3413/ntfrcv.py')
-rw-r--r-- | pysnmp/entity/rfc3413/ntfrcv.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pysnmp/entity/rfc3413/ntfrcv.py b/pysnmp/entity/rfc3413/ntfrcv.py index fbec47ca..9e3fcc24 100644 --- a/pysnmp/entity/rfc3413/ntfrcv.py +++ b/pysnmp/entity/rfc3413/ntfrcv.py @@ -84,9 +84,9 @@ class NotificationReceiver(object): contextName, pduVersion, rspPDU, maxSizeResponseScopedPDU, stateReference, statusInformation) - except error.StatusInformation: + except error.StatusInformation as exc: debug.logger & debug.flagApp and debug.logger( - 'processPdu: stateReference %s, statusInformation %s' % (stateReference, sys.exc_info()[1])) + 'processPdu: stateReference %s, statusInformation %s' % (stateReference, exc)) snmpSilentDrops, = snmpEngine.msgAndPduDsp.mibInstrumController.mibBuilder.importSymbols('__SNMPv2-MIB', 'snmpSilentDrops') snmpSilentDrops.syntax += 1 |