Skip to content

Commit

Permalink
fix: W0621
Browse files Browse the repository at this point in the history
  • Loading branch information
geemi725 committed Sep 11, 2024
1 parent e3613aa commit a6925dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions paperqa/clients/crossref.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit a6925dd

Please sign in to comment.