Commit 28a3a4b0 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Update InvenioStore.get_ids to fix a typo.

parent fd4bd999
......@@ -20,7 +20,7 @@ MSG_HTTP_DECODE = "Fail to decode HTTP response"
MSG_HTTP_ERROR = "HTTP Error"
MSG_NO_IDS = "Invalid list of record identifiers"
MSG_NO_SHELF = "No shelf %s for store %s"
MSG_NOT_IMPLEMENTED = "Method '%' not implemented for store '%' and shelf '%'<"
MSG_NOT_IMPLEMENTED = "Method '%s' not implemented for store %s and shelf %s"
MSG_WRONG_KEYWORD = "Invalid keyword argument"
# maximum number of identifiers to be collected at once.
......@@ -436,7 +436,7 @@ class InvenioStore(object):
"""
host = self._host
if host != "old.inspirehep.net":
if host not in ("cds.cern.ch", "old.inspirehep.net"):
msg = MSG_NOT_IMPLEMENTED % ("get_ids", host, self._shelf)
raise CdsException(msg)
......
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