Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove unnecessary as in except statement,
Co-authored-by: Victor Stinner <vstinner@python.org>
  • Loading branch information
gpshead and vstinner authored Dec 2, 2024
commit 2a5b7e8333de2d0798c9aac1fef2ea4a889c3707
2 changes: 1 addition & 1 deletion Lib/hashlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def file_digest(fileobj, digest, /, *, _bufsize=2**18):
# version not supporting that algorithm.
try:
globals()[__func_name] = __get_hash(__func_name)
except ValueError as exc:
except ValueError:
# Errors logged here would be seen as noise by most people.
# Code using a missing hash will get an obvious exception.
__all__.remove(__func_name)
Expand Down