Skip to content

Commit

Permalink
Update generate.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dionhaefner authored Dec 16, 2023
1 parent cc9c4b0 commit 05bf47f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def doi_to_bibtex(doi):

with requests.get(url, headers=headers) as res:
res.raise_for_status()
out = res.content.decode("utf-8")
out = res.content.decode("utf-8").strip()

if not out.startswith("@"):
raise RuntimeError(f"got unexpected response for doi {doi}: {out}")
Expand Down

0 comments on commit 05bf47f

Please sign in to comment.