Fix #274: Broken logging statement during import error

This commit is contained in:
Eliot Berriot 2018-06-05 20:52:03 +02:00
parent 5f5cb2838e
commit b7295382e7
No known key found for this signature in database
GPG Key ID: DD6965E2476E5C27
2 changed files with 4 additions and 1 deletions

View File

@ -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'])

View File

@ -0,0 +1 @@
Broken logging statement during import error (#274)