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
615689e4
Commit
615689e4
authored
Jan 27, 2020
by
LE GAC Renaud
Browse files
Update InvenioStore.interogate to return requests.Response.
parent
b877ecf6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
modules/invenio_tools/inveniostore.py
modules/invenio_tools/inveniostore.py
+3
-4
No files found.
modules/invenio_tools/inveniostore.py
View file @
615689e4
...
...
@@ -284,7 +284,7 @@ class InvenioStore(object):
timeout for the HTTP request
Returns:
str: the HTTP r
esponse
requests.R
esponse
:
Raises:
RequestException:
...
...
@@ -296,8 +296,7 @@ class InvenioStore(object):
r
=
self
.
_session
.
get
(
url
,
timeout
=
timeout
,
params
=
params
)
r
.
raise_for_status
()
r
.
encoding
=
"utf-8"
return
r
.
text
return
r
def
get_ids
(
self
,
**
kwargs
):
"""Return a list of *record id* matching search criteria.
...
...
@@ -408,7 +407,7 @@ class InvenioStore(object):
# check that the list of identifier is well form
# [1291068, 1352722, 1376692] or [1493820] or []
if
len
(
filter
(
lambda
x
:
not
isinstance
(
x
,
int
),
li
))
>
0
:
if
len
(
list
(
filter
(
lambda
x
:
not
isinstance
(
x
,
int
),
li
))
)
>
0
:
raise
CdsException
(
MSG_NO_IDS
)
ids
.
extend
(
li
)
...
...
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