diff options
author | Ilya Etingof <etingof@gmail.com> | 2019-02-09 17:47:15 +0100 |
---|---|---|
committer | Ilya Etingof <etingof@gmail.com> | 2019-02-09 17:47:15 +0100 |
commit | 2b5603ecf98c1c47e94a405bd98054d1703af9e7 (patch) | |
tree | d0f544c895b238fbb5660dbf23b3d54c31bfa0b9 /pysnmp/entity/rfc3413/ntfrcv.py | |
parent | 05b982f4b1cfa143d6fa607a6b9b24d3a77981a1 (diff) | |
download | pysnmp-git-2b5603ecf98c1c47e94a405bd98054d1703af9e7.tar.gz |
Drop Python < 2.6 except statement compatibility trick
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 |