Skip to content

Commit

Permalink
style(misc): Add ValueError to doscstring
Browse files Browse the repository at this point in the history
  • Loading branch information
chgad committed Jul 13, 2024
1 parent 582050e commit e6585c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions falcon/util/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ def http_date_to_dt(http_date: str, obs_date: bool = False) -> datetime.datetime
Raises:
ValueError: http_date doesn't match any of the available time formats
ValueError: http_date doesn't match allowed timezones
"""
date_timezone_str = http_date[-3:]
has_tz_identifier = not date_timezone_str.isdigit()
Expand Down

0 comments on commit e6585c6

Please sign in to comment.