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
5bc096ac
Commit
5bc096ac
authored
Jan 30, 2020
by
LE GAC Renaud
Browse files
Update InvenioStore.get_record to return more explicit error message.
parent
f09c1a27
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
modules/invenio_tools/inveniostore.py
modules/invenio_tools/inveniostore.py
+2
-1
No files found.
modules/invenio_tools/inveniostore.py
View file @
5bc096ac
...
...
@@ -14,6 +14,7 @@ CDS_SEARCH_KEYS = ("req", "cc", "c", "ec", "p", "f", "rg", "sf", "so", "sp",
"d1y"
,
"d1m"
,
"d1d"
,
"d2"
,
"d2y"
,
"d2m"
,
"d2d"
,
"dt"
,
"verbose"
,
"ap"
,
"ln"
,
"ec"
)
MSG_HTTP_DECODE
=
"Failed to decode HTTP response"
MSG_HTTP_ERROR
=
"HTTP Error"
MSG_NO_IDS
=
"Invalid list of record identifiers"
MSG_WRONG_KEYWORD
=
"Invalid keyword argument"
...
...
@@ -448,7 +449,7 @@ class InvenioStore(object):
li
=
rep
.
json
()
except
ValueError
as
e
:
raise
CdsException
(
e
)
raise
CdsException
(
MSG_HTTP_DECODE
)
return
li
[
0
]
...
...
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