Skip to content

Commit

Permalink
Merge pull request #567 from camptocamp/no-remote
Browse files Browse the repository at this point in the history
Fix None Type
  • Loading branch information
sbrunner authored May 9, 2022
2 parents 48e35fd + 6ee56a8 commit 372f413
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions c2cciutils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -731,9 +731,8 @@ def get_based_on_master(
branches_re = compile_re(config["version"].get("branch_to_version_re", []))
if does_match(current_branch, branches_re):
return False
commits_json = graphql("commits.graphql", {"name": repo[1], "owner": repo[0], "branch": current_branch})[
"repository"
]["ref"]["target"]["history"]["nodes"]
commits_json = graphql("commits.graphql", {"name": repo[1], "owner": repo[0], "branch": current_branch}).get(
"repository", {}).get("ref", {}).get("target", {}).get("history", {}).get("nodes", [])
branches_json = [
branch
for branch in (
Expand Down

0 comments on commit 372f413

Please sign in to comment.