diff --git a/ircrobots/sasl.py b/ircrobots/sasl.py index 026ac5c..887484c 100644 --- a/ircrobots/sasl.py +++ b/ircrobots/sasl.py @@ -161,7 +161,7 @@ class SASLContext(ServerContext): try: algo = SCRAMAlgorithm(algo_str_prep) except ValueError: - raise ValueError("Unknown SCRAM algorithm '%s'" % algo) + raise ValueError("Unknown SCRAM algorithm '%s'" % algo_str_prep) scram = SCRAMContext(algo, username, password) client_first = _b64eb(scram.client_first()) diff --git a/ircrobots/scram.py b/ircrobots/scram.py index 04788e6..7de3cf8 100644 --- a/ircrobots/scram.py +++ b/ircrobots/scram.py @@ -8,7 +8,7 @@ from typing import Dict # MD2 has been removed as it's unacceptably weak class SCRAMAlgorithm(Enum): MD5 = "MD5" - SHA_1 = "SHA-1" + SHA_1 = "SHA1" SHA_224 = "SHA224" SHA_256 = "SHA256" SHA_384 = "SHA384"