Skip to content

Commit f4bf516

Browse files
committed
fix raise
1 parent 2b8d5f0 commit f4bf516

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/support/hashlib_helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ def _hashlib_new(digestname, openssl, /, **kwargs):
268268
module = _hashlib if openssl and _hashlib is not None else hashlib
269269
try:
270270
module.new(digestname, **kwargs)
271-
except ValueError:
271+
except ValueError as exc:
272272
interface = f"{module.__name__}.new"
273273
raise SkipNoHash(digestname, interface=interface) from exc
274274
return functools.partial(module.new, digestname)

0 commit comments

Comments
 (0)