Skip to content

Fix empty repository crash due to None timestamp comparison (#489)#490

Open
Iamrodos wants to merge 1 commit intojosegonzalez:masterfrom
Iamrodos:fix/489-empty-repo-none-comparison
Open

Fix empty repository crash due to None timestamp comparison (#489)#490
Iamrodos wants to merge 1 commit intojosegonzalez:masterfrom
Iamrodos:fix/489-empty-repo-none-comparison

Conversation

@Iamrodos
Copy link
Contributor

Empty repositories have None for pushed_at/updated_at, causing a TypeError when compared to the last_update string. Use .get() with truthiness check to skip None timestamps in incremental tracking.

Tested against empty repo example from the issue.

…alez#489)

Empty repositories have None for pushed_at/updated_at, causing a
TypeError when compared to the last_update string. Use .get() with
truthiness check to skip None timestamps in incremental tracking.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments