Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

Commit

Permalink
Fix version extraction
Browse files Browse the repository at this point in the history
With a new distgit repository, this would explode. Allow for a not
existing `version` label.
  • Loading branch information
joepvd committed Jun 21, 2021
1 parent 2fc6bd6 commit 345f848
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doozerlib/distgit.py
Original file line number Diff line number Diff line change
Expand Up @@ -2171,7 +2171,7 @@ def extract_version_release_private_fix(self) -> Tuple[str, str, str]:
private_fix = True
elif util.isolate_pflag_in_release(prev_release) == 'p0':
private_fix = False
version = dfp.labels["version"]
version = dfp.labels.get("version")
return version, prev_release, private_fix
return None, None, None

Expand Down

0 comments on commit 345f848

Please sign in to comment.