Skip to content

Commit c4d5afb

Browse files
committed
be less strict on the e-mail check for maintainers
1 parent c7df63f commit c4d5afb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codemeta/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,7 @@ def enrich(g: Graph, res: URIRef, args: AttribDict):
793793
print(f"{HEAD} considering first author as maintainer",file=sys.stderr)
794794
for _,_,o in iter_ordered_list(g, res, SDO.author):
795795
mail = g.value(o,SDO.email)
796-
if mail is not None and str(mail).lower().find("unknown") == -1 and str(mail).lower().find("noreply") == -1 and str(mail).lower().find("no-reply") == -1:
796+
if mail is None or (mail is not None and str(mail).lower().find("unknown") == -1 and str(mail).lower().find("noreply") == -1 and str(mail).lower().find("no-reply") == -1): #filters out maintainers with invalid e-mail addresses (does retain maintainers without mail address at all)
797797
g.add((res, SDO.maintainer, o))
798798
break
799799

0 commit comments

Comments
 (0)