Skip to content

Commit

Permalink
Drop tzinfo prior to comparison -- can't compare tz-aware and tz-miss…
Browse files Browse the repository at this point in the history
…ing PRs. Assume github or pygithub started including tzinfo causing this new failure?
  • Loading branch information
dannon committed Jan 10, 2024
1 parent e32a700 commit 4f67bf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion galaxy_release_util/bootstrap_history.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ def _get_prs(release_version: str, state="closed"):
if reached_old_prs:
break

if pr.created_at < datetime.datetime(2020, 5, 1, 0, 0):
if pr.created_at.replace(tzinfo=None) < datetime.datetime(2020, 5, 1, 0, 0):
reached_old_prs = True
pass
merged_at = pr.merged_at
Expand Down

0 comments on commit 4f67bf2

Please sign in to comment.