Skip to content

Commit

Permalink
Fixup: When parsing Project-URL, make sure an unknown label doesn't g…
Browse files Browse the repository at this point in the history
…et ignored
  • Loading branch information
proycon committed Jun 9, 2022
1 parent 4e4248f commit 07469f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codemeta/parsers/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def parse_python(g: Graph, res: Union[URIRef, BNode], packagename: str, crosswal
add_triple(g, res, "codeRepository", url, args)
elif label.lower() in ("bug tracker","issue tracker"):
add_triple(g, res, "issueTracker", url, args)
elif label.lower() in ("website","homepage","home","project site", "project website","webpage"): #no idea what occurs in the wild
else:
add_triple(g, res, "url", url, args)
else:
add_triple(g, res, "url", value, args) #input probably not according to spec
Expand Down

0 comments on commit 07469f3

Please sign in to comment.