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
4 changes: 2 additions & 2 deletions github_backup/github_backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -1772,9 +1772,9 @@ def backup_repositories(args, output_directory, repositories):

last_update = "0000-00-00T00:00:00Z"
for repository in repositories:
if "updated_at" in repository and repository["updated_at"] > last_update:
if repository.get("updated_at") and repository["updated_at"] > last_update:
last_update = repository["updated_at"]
elif "pushed_at" in repository and repository["pushed_at"] > last_update:
elif repository.get("pushed_at") and repository["pushed_at"] > last_update:
last_update = repository["pushed_at"]

if repository.get("is_gist"):
Expand Down