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
c9e603ad
Commit
c9e603ad
authored
Sep 02, 2016
by
LE GAC Renaud
Browse files
Update invenio_tools.load_record to document exception.
parent
7c8fd1f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
modules/invenio_tools/__init__.py
modules/invenio_tools/__init__.py
+4
-0
No files found.
modules/invenio_tools/__init__.py
View file @
c9e603ad
...
...
@@ -47,6 +47,10 @@ def load_record(host, record_id):
Returns:
Record or None: the decoded record when it exist, ``None`` otherwise.
Raises:
CdsException: when the server return an HTTP error.
Marc12Exception: when a record is not well formed XML.
"""
store
=
InvenioStore
(
host
)
xml
=
store
.
get_record
(
record_id
)
...
...
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