Skip to content
Snippets Groups Projects
Verified Commit b7295382 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Fix #274: Broken logging statement during import error

parent 5f5cb283
No related branches found
No related tags found
No related merge requests found
......@@ -259,7 +259,9 @@ def get_cover_from_fs(dir_path):
'import_job')
def import_job_run(self, import_job, replace=False, use_acoustid=False):
def mark_errored(exc):
logger.error('[Import Job %s] Error during import: %s', str(exc))
logger.error(
'[Import Job %s] Error during import: %s',
import_job.pk, str(exc))
import_job.status = 'errored'
import_job.save(update_fields=['status'])
......
Broken logging statement during import error (#274)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment