Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
limbra
limbra
Commits
c5b5a0fe
Commit
c5b5a0fe
authored
Feb 28, 2020
by
LE GAC Renaud
Browse files
Update invenio_tools/factory to add a protection in add_conference_data.
parent
f5dcb51c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
modules/invenio_tools/factory.py
modules/invenio_tools/factory.py
+8
-4
No files found.
modules/invenio_tools/factory.py
View file @
c5b5a0fe
...
...
@@ -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
)
else
:
confjson
=
get_conference_data
(
host
,
key
=
conf_key
)
kwargs
=
dict
(
key
=
conf_key
)
try
:
confjson
=
get_conference_data
(
host
,
**
kwargs
)
except
CdsException
:
return
#
# extract the conference url
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment