bugfix. returning now tuples.

This commit is contained in:
Teja 2015-08-06 16:03:18 +02:00
parent 493612a47f
commit 0d83eaf1e3

View file

@ -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"]