diff options
author | Ilya Etingof <etingof@gmail.com> | 2019-08-05 10:28:00 +0200 |
---|---|---|
committer | Ilya Etingof <etingof@gmail.com> | 2019-08-10 20:10:01 +0200 |
commit | d7fa0f0c3bf3241b7f8610a1ca47b0c47dd72877 (patch) | |
tree | c242dc4af1b2ee99bb2625c85ee68d2a1a97001e | |
parent | 51a461b20653082810ddb9a54be510116a4838a0 (diff) | |
download | pysnmp-git-d7fa0f0c3bf3241b7f8610a1ca47b0c47dd72877.tar.gz |
Fix crashing VACM debugging
-rw-r--r-- | pysnmp/proto/secmod/rfc3414/service.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pysnmp/proto/secmod/rfc3414/service.py b/pysnmp/proto/secmod/rfc3414/service.py index f20df861..74bdaff9 100644 --- a/pysnmp/proto/secmod/rfc3414/service.py +++ b/pysnmp/proto/secmod/rfc3414/service.py @@ -383,9 +383,9 @@ class SnmpUSMSecurityModel(AbstractSecurityModel): 'securityEngineID "%s" and securityName "%s"' % ( usmUserName, usmUserSecurityName, usmUserAuthProtocol, - usmUserAuthKeyLocalized.prettyPrint(), + usmUserAuthKeyLocalized and usmUserAuthKeyLocalized.prettyPrint(), usmUserPrivProtocol, - usmUserPrivKeyLocalized.prettyPrint(), + usmUserPrivKeyLocalized and usmUserPrivKeyLocalized.prettyPrint(), securityEngineID.prettyPrint(), securityName)) @@ -416,9 +416,9 @@ class SnmpUSMSecurityModel(AbstractSecurityModel): 'securityEngineID "%s" and securityName "%s"' % ( usmUserName, usmUserSecurityName, usmUserAuthProtocol, - usmUserAuthKeyLocalized.prettyPrint(), + usmUserAuthKeyLocalized and usmUserAuthKeyLocalized.prettyPrint(), usmUserPrivProtocol, - usmUserPrivKeyLocalized.prettyPrint(), + usmUserPrivKeyLocalized and usmUserPrivKeyLocalized.prettyPrint(), securityEngineID.prettyPrint(), securityName)) except NoSuchInstanceError: |