Skip to content

Commit

Permalink
URSA-253 > Do not expect author field in github /commits/id response …
Browse files Browse the repository at this point in the history
…and do not try requests with 500 responses
  • Loading branch information
Elena Henderson committed Mar 15, 2021
1 parent 197b38d commit 6867867
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions conbench/entities/commit.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@ def parse_commit(commit):
"date": dateutil.parser.isoparse(commit["commit"]["author"]["date"]),
"message": commit["commit"]["message"].split("\n")[0],
"author_name": commit["commit"]["author"]["name"],
"author_login": commit["author"]["login"],
"author_avatar": commit["author"]["avatar_url"],
"author_login": commit["author"]["login"] if commit["author"] else None,
"author_avatar": commit["author"]["avatar_url"] if commit["author"] else None,
}
2 changes: 1 addition & 1 deletion conbench/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

retry_strategy = Retry(
total=5,
status_forcelist=[500, 502, 503, 504],
status_forcelist=[502, 503, 504],
allowed_methods=frozenset(["GET", "POST"]),
backoff_factor=4, # will retry in 2, 4, 8, 16, 32 seconds
)
Expand Down

0 comments on commit 6867867

Please sign in to comment.