Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
petitminion
funkwhale
Commits
b7295382
Verified
Commit
b7295382
authored
Jun 05, 2018
by
Eliot Berriot
Browse files
Fix #274: Broken logging statement during import error
parent
5f5cb283
Changes
2
Hide whitespace changes
Inline
Side-by-side
api/funkwhale_api/music/tasks.py
View file @
b7295382
...
...
@@ -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'
])
...
...
changes/changelog.d/274.bugfix
0 → 100644
View file @
b7295382
Broken logging statement during import error (#274)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment