Skip to content

Commit

Permalink
catch generic Exception over specific error type
Browse files Browse the repository at this point in the history
  • Loading branch information
rgajrawala authored Jul 15, 2024
1 parent cec17b5 commit 3c8e572
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tornado/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -2863,7 +2863,7 @@ def should_return_304(self) -> bool:
if ims_value is not None:
try:
if_since = email.utils.parsedate_to_datetime(ims_value)
except ValueError:
except Exception:
return False
if if_since.tzinfo is None:
if_since = if_since.replace(tzinfo=datetime.timezone.utc)
Expand Down

0 comments on commit 3c8e572

Please sign in to comment.