forked from mirrors/bookwyrm
Raise errors when import items fail
This should make is way easier to debug
This commit is contained in:
parent
b784dcdb46
commit
6a5a598345
1 changed files with 1 additions and 2 deletions
|
@ -123,10 +123,9 @@ def import_item_task(source, item_id):
|
|||
try:
|
||||
item.resolve()
|
||||
except Exception as err: # pylint: disable=broad-except
|
||||
logger.exception(err)
|
||||
item.fail_reason = _("Error loading book")
|
||||
item.save()
|
||||
return
|
||||
raise err
|
||||
|
||||
if item.book:
|
||||
job = item.job
|
||||
|
|
Loading…
Reference in a new issue