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

Commit aba498a5 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Update Marc12._add_conference_data to add a protection.

parent ddbaf71d
......@@ -548,6 +548,7 @@
'Reject no conference date': 'Rejeté pas de dates pour la conférence',
'Reject no conference information': "Rejeté pas d'information sur la conférence",
'Reject no CPPM authors': "Rejeté pas d'auteurs du CPPM",
'Reject no host information in record': "Rejeté l'entrepôt n'est pas féfini dans la notice",
'Reject no OAI identifier': "Rejeté pas d'identifiant OAI",
'Reject no preprint number': 'Rejeté pas de numéro de preprint',
'Reject no preprint number nor submission date': 'Rejeté pas de numéro de preprint ou de date de soumission',
......@@ -8,6 +8,7 @@ ARXIV_PDF = ""
MSG_NO_CONF = "Reject no conference information"
MSG_NO_COUNTRY = "Reject invalid country"
MSG_NO_HOST = "Reject no host information in record"
MSG_NO_PUBLISHER = "Reject invalid publisher"
MSG_NO_THESIS = "Reject no thesis information"
MSG_WELL_FORMED_COLLABORATION = "Reject collaboration is not well formed"
......@@ -8,6 +8,7 @@ from .base import (is_conference,
from .exception import Marc12Exception
......@@ -52,11 +53,13 @@ class Marc12(object):
record (Record): record describing a conference.
# alias
# reference to host
host =
key = record.reference_conference_key()
if host in ("", None):
raise Marc12Exception(MSG_NO_HOST)
# for talk or proceeding a key is always defined
key = record.reference_conference_key()
if not key:
raise Marc12Exception(MSG_NO_CONF)
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