diff options
author | elie <elie> | 2007-02-14 09:59:07 +0000 |
---|---|---|
committer | elie <elie> | 2007-02-14 09:59:07 +0000 |
commit | 56659fb764fbae437d6127ef63804884d678f44d (patch) | |
tree | 5a38996d4db38c52ed8643ee4b5fdc0ce072dbe5 /pysnmp/proto/rfc3412.py | |
parent | f0dce2ee976a3338d6009ee9bf30a239bcee8756 (diff) | |
download | pysnmp-git-56659fb764fbae437d6127ef63804884d678f44d.tar.gz |
handle possibly empty PDU in debugging
Diffstat (limited to 'pysnmp/proto/rfc3412.py')
-rw-r--r-- | pysnmp/proto/rfc3412.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pysnmp/proto/rfc3412.py b/pysnmp/proto/rfc3412.py index a619f449..ff943918 100644 --- a/pysnmp/proto/rfc3412.py +++ b/pysnmp/proto/rfc3412.py @@ -218,7 +218,7 @@ class MsgAndPduDispatcher: errorIndication='unsupportedMsgProcessingModel' ) - debug.logger & debug.flagDsp and debug.logger('returnResponsePdu: PDU %s' % PDU.prettyPrint()) + debug.logger & debug.flagDsp and debug.logger('returnResponsePdu: PDU %s' % (PDU and PDU.prettyPrint() or "<empty>",)) # 4.1.2.2 try: |