Commit 5bc096ac authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Update InvenioStore.get_record to return more explicit error message.

parent f09c1a27
......@@ -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_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]
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