We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0f8ddf commit e10f947Copy full SHA for e10f947
1 file changed
server/workers/api/src/apis/export.py
@@ -44,7 +44,10 @@ def transform2bibtex(metadata):
44
except Exception:
45
author = metadata.get("authors", "")
46
doi = metadata.get("doi", "")
47
- doi = re.sub("https://|http://|dx.doi.org/|doi.org/", "", doi)
+ try:
48
+ doi = re.sub("https://|http://|dx.doi.org/|doi.org/", "", doi)
49
+ except Exception:
50
+ pass
51
id = metadata.get("id", "")
52
published_in = metadata.get("published_in", "")
53
url = metadata.get("list_link", {}).get("address", "")
0 commit comments