Skip to content

Commit e04d4be

Browse files
committed
Return orcid_id only if not None...
although may be that would us become non-specific?
1 parent 147358c commit e04d4be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tributors/main/orcid.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ def get_orcid(email: str | None, name: str | None = None, interactive=False):
309309
url = extended_search_url(*search_args)
310310
if (
311311
orcid_id := record_search(url, search_args, interactive, search_desc)
312-
) is not Ellipsis:
312+
) is not Ellipsis and orcid_id:
313313
return orcid_id
314314
if orcid_id is Ellipsis:
315315
orcid_id = None

0 commit comments

Comments
 (0)