We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94dae3d commit 8df6132Copy full SHA for 8df6132
codemeta/parsers/python.py
@@ -309,7 +309,7 @@ def parse_python(
309
mail=pkg.metadata.get("Author-email", ""),
310
baseuri=args.baseuri,
311
)
312
- elif key == "Author-email": # importlib.metadata
+ elif key == "Author-email" and pkg: # importlib.metadata
313
add_authors(
314
g,
315
res,
@@ -347,7 +347,7 @@ def parse_python(
347
mail=pkg.metadata.get("Maintainer-email", ""),
348
349
350
- elif key == "Maintainer-email": # importlib.metadata
+ elif key == "Maintainer-email" and pkg: # importlib.metadata
351
352
353
0 commit comments