Skip to content
Merged
Changes from all commits
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
6 changes: 6 additions & 0 deletions stale_repos.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,12 @@ def get_days_since_last_release(repo):
try:
last_release = next(repo.releases())
return (datetime.now(timezone.utc) - last_release.created_at).days
except TypeError:
print(
f"{repo.html_url} had an exception trying to get the last release.\
Potentially caused by ghost user."
)
return None
except StopIteration:
return None

Expand Down
Loading