-
Notifications
You must be signed in to change notification settings - Fork 609
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -108,16 +108,16 @@ def crossref_headers() -> dict[str, str]: | |
|
||
def crossref_mailto() -> str: | ||
"""Crossref mailto if available, otherwise a default.""" | ||
crossref_mailto = os.getenv("CROSSREF_MAILTO") | ||
MAILTO = os.getenv("CROSSREF_MAILTO") | ||
|
||
if not crossref_mailto: | ||
if not MAILTO: | ||
logger.warning( | ||
"CROSSREF_MAILTO environment variable not set. Crossref API rate limits may" | ||
" apply." | ||
) | ||
return "[email protected]" | ||
|
||
return crossref_mailto | ||
return MAILTO | ||
|
||
|
||
async def doi_to_bibtex( | ||
|