Skip to content

Commit

Permalink
Minor edit to a couple of exception messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpeacock-zenoss committed Nov 1, 2024
1 parent 8aea1fc commit a721a28
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pynetsnmp/security.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,7 @@ def __init__(self, protocol, passphrase):
self.protocol = auth_protocols[protocol]
if not passphrase:
raise ValueError(
"authentication protocol requires an "
"authentication passphrase"
"Authentication protocol requires a passphrase"
)
self.passphrase = passphrase

Expand All @@ -110,5 +109,5 @@ def __init__(self, protocol, passphrase):
raise ValueError("Invalid Privacy protocol '{}'".format(protocol))
self.protocol = priv_protocols[protocol]
if not passphrase:
raise ValueError("privacy protocol requires a privacy passphrase")
raise ValueError("Privacy protocol requires a passphrase")
self.passphrase = passphrase

0 comments on commit a721a28

Please sign in to comment.