Docker-in-Docker (DinD) capabilities of public runners deactivated. More info

Commit 28b2ec83 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Update RecordPubli to fix a bug in preprint_number.

parent f5403c9a
......@@ -657,7 +657,8 @@ class RecordPubli(Record):
"""The ArXiv preprint number.
str: empty string when it is not defined.
empty string when it is not defined.
if u"primary_report_number" not in self:
......@@ -666,7 +667,7 @@ class RecordPubli(Record):
data = self[u"primary_report_number"]
data = (data if isinstance(data, list) else [data])
li = [el for el in data if el.startswith(ARXIV)]
li = [el for el in data if el is not None and el.startswith(ARXIV)]
if len(li) == 1:
return li[0]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment