mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-22 17:41:08 +00:00
Safely handle absent claims field
This commit is contained in:
parent
8d38d1c9d1
commit
cfd2c05ae2
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ class Connector(AbstractConnector):
|
|||
raise ConnectorException("Invalid book data")
|
||||
# flatten the data so that images, uri, and claims are on the same level
|
||||
return {
|
||||
**data.get("claims"),
|
||||
**data.get("claims", {}),
|
||||
**{k: data.get(k) for k in ["uri", "image", "labels"]},
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue