From a721a28f1fd56cd92c241eb6a1b8e4d4aea113d2 Mon Sep 17 00:00:00 2001 From: Jason Peacock Date: Fri, 1 Nov 2024 15:41:59 -0500 Subject: [PATCH] Minor edit to a couple of exception messages. --- pynetsnmp/security.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pynetsnmp/security.py b/pynetsnmp/security.py index 5757309..b01bb9b 100644 --- a/pynetsnmp/security.py +++ b/pynetsnmp/security.py @@ -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 @@ -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