bugfix. returning now tuples.
This commit is contained in:
parent
493612a47f
commit
0d83eaf1e3
1 changed files with 2 additions and 2 deletions
|
|
@ -21,11 +21,11 @@ def _get_latest_commit(user, repo, branch):
|
|||
log_github_ratelimit(logger, r)
|
||||
|
||||
if not r.status_code == requests.codes.ok:
|
||||
return None
|
||||
return None, None
|
||||
|
||||
reference = r.json()
|
||||
if not "object" in reference or not "sha" in reference["object"]:
|
||||
return None
|
||||
return None, None
|
||||
|
||||
return reference["object"]["sha"]
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue