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

Update invenio_tools/factory to add a protection in add_conference_data.

parent f5dcb51c
......@@ -112,14 +112,18 @@ def add_conference_data(recjson):
# Get conference data
# get the data
if conf_id is not None:
conf_id = (conf_id if isinstance(conf_id, int) else int(conf_id))
confjson = get_conference_data(host, conf_id=conf_id)
kwargs = dict(conf_id=conf_id)
confjson = get_conference_data(host, key=conf_key)
kwargs = dict(key=conf_key)
confjson = get_conference_data(host, **kwargs)
except CdsException:
# extract the conference url
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