Skip to content

Commit

Permalink
Merge pull request #20 from covracer/patch-1
Browse files Browse the repository at this point in the history
Avoid `KeyError: 'rev'` for special repos
  • Loading branch information
Stephen-RA-King authored Jun 9, 2023
2 parents 172415f + ec6293c commit e565909
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/piptools_sync/piptools_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,8 @@ def yaml_to_dict(yaml_file: Path) -> dict:
yaml_contents = yaml.safe_load(f)
repos = {}
for _, repo in enumerate(yaml_contents["repos"]):
if repo["repo"] in ("local", "meta"):
continue
version = repo["rev"]
version = _utility_remove_vee(version)
repos[repo["repo"].strip().lower()] = version.strip()
Expand Down

0 comments on commit e565909

Please sign in to comment.