mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 02:39:58 +02:00
Fix #274: Broken logging statement during import error
This commit is contained in:
parent
5f5cb2838e
commit
b7295382e7
2 changed files with 4 additions and 1 deletions
|
@ -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'])
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue