Skip to content

Commit 8589b9e

Browse files
committed
fix: bad None's in datacite conversion
1 parent 2f33742 commit 8589b9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codemeticulous/datacite/convert.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ def codemeta_language_fileformat_to_datacite_format(
312312
for f in possible_formats:
313313
if isinstance(f, str):
314314
formats.append(f)
315-
elif hasattr(f, "name"):
315+
elif hasattr(f, "name") and isinstance(f.name, str):
316316
formats.append(f.name)
317317
return formats or None
318318

0 commit comments

Comments
 (0)