Skip to content

Commit

Permalink
extra check
Browse files Browse the repository at this point in the history
  • Loading branch information
proycon committed Nov 24, 2023
1 parent 843d48b commit c7df63f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions codemeta/parsers/rust.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ def parse_rust(g: Graph, res: Union[URIRef, BNode], file: IO, args: AttribDict):
add_authors(
g, res, value, single_author=True, baseuri=args.baseuri
)
else:
print(
"WARNING: authors in Cargo.toml should be a list or string",
file=sys.stderr,
)
elif key == "keywords":
if isinstance(value, (list, tuple)):
for keyword in value:
Expand Down

0 comments on commit c7df63f

Please sign in to comment.