summaryrefslogtreecommitdiff
path: root/pysnmp/proto/rfc3412.py
diff options
context:
space:
mode:
authorelie <elie>2007-02-14 09:59:07 +0000
committerelie <elie>2007-02-14 09:59:07 +0000
commit56659fb764fbae437d6127ef63804884d678f44d (patch)
tree5a38996d4db38c52ed8643ee4b5fdc0ce072dbe5 /pysnmp/proto/rfc3412.py
parentf0dce2ee976a3338d6009ee9bf30a239bcee8756 (diff)
downloadpysnmp-git-56659fb764fbae437d6127ef63804884d678f44d.tar.gz
handle possibly empty PDU in debugging
Diffstat (limited to 'pysnmp/proto/rfc3412.py')
-rw-r--r--pysnmp/proto/rfc3412.py2
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: