From 104fc0ab82e8a42c52ade25c5fc09e19819be831 Mon Sep 17 00:00:00 2001 From: Ahmed Shariff Date: Tue, 6 Feb 2024 18:58:24 -0800 Subject: [PATCH] Fix for inactive doi in arxiv data --- org-ref-arxiv.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/org-ref-arxiv.el b/org-ref-arxiv.el index 31572c55..8360416b 100644 --- a/org-ref-arxiv.el +++ b/org-ref-arxiv.el @@ -137,9 +137,9 @@ Returns a formatted BibTeX entry." (org-ref-replace-nonascii) (bibtex-generate-autokey))) (doi (assq 'doi entry))) - (if doi - (doi-utils-doi-to-bibtex-string (nth 2 doi)) - ;; no doi, so we fall back to the simple template + (unless (and doi + (ignore-errors (doi-utils-doi-to-bibtex-string (nth 2 doi)))) + ;; no doi or inactive doi, so we fall back to the simple template (format arxiv-entry-format-string key title names year arxiv-number category abstract url)))))