mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2025-02-03 12:52:20 +00:00
Merge branch 'main' into production
This commit is contained in:
commit
f23e10f8f7
1 changed files with 3 additions and 0 deletions
|
@ -112,6 +112,9 @@ class AbstractConnector(ABC):
|
||||||
# remember this hack: re-use the work data as the edition data
|
# remember this hack: re-use the work data as the edition data
|
||||||
work_data = data
|
work_data = data
|
||||||
|
|
||||||
|
if not work_data or not edition_data:
|
||||||
|
raise ConnectorException('Unable to load book data: %s' % remote_id)
|
||||||
|
|
||||||
# at this point, we need to figure out the work, edition, or both
|
# at this point, we need to figure out the work, edition, or both
|
||||||
# atomic so that we don't save a work with no edition for vice versa
|
# atomic so that we don't save a work with no edition for vice versa
|
||||||
with transaction.atomic():
|
with transaction.atomic():
|
||||||
|
|
Loading…
Reference in a new issue