Fixes tests
This commit is contained in:
parent
50ca16a46f
commit
6dd7eebd98
2 changed files with 8 additions and 4 deletions
|
@ -67,7 +67,7 @@ class Connector(AbstractConnector):
|
|||
extracted = list(data.get("entities").values())
|
||||
try:
|
||||
data = extracted[0]
|
||||
except KeyError:
|
||||
except (KeyError, IndexError):
|
||||
raise ConnectorException("Invalid book data")
|
||||
# flatten the data so that images, uri, and claims are on the same level
|
||||
return {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue