diff options
author | elie <elie> | 2007-02-14 09:59:07 +0000 |
---|---|---|
committer | elie <elie> | 2007-02-14 09:59:07 +0000 |
commit | ec55e4f5e649885dd412ffca13ef2b86cac3536b (patch) | |
tree | 91e330461a78444aae6f9794082334a87344637b | |
parent | e075a86afc53efd34aedbc2d125a0938954f0993 (diff) | |
download | pysnmp-ec55e4f5e649885dd412ffca13ef2b86cac3536b.tar.gz |
handle possibly empty PDU in debugging
-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 a619f44..ff94391 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: |