Bugfix handling of stacktrace from calibre
This commit is contained in:
parent
021298374e
commit
b7927a0df1
|
@ -239,9 +239,10 @@ class TaskConvert(CalibreTask):
|
||||||
calibre_traceback = p.stderr.readlines()
|
calibre_traceback = p.stderr.readlines()
|
||||||
error_message = ""
|
error_message = ""
|
||||||
for ele in calibre_traceback:
|
for ele in calibre_traceback:
|
||||||
log.debug(ele.strip('\n'))
|
ele = ele.decode('utf-8', errors="ignore").strip('\n')
|
||||||
|
log.debug(ele)
|
||||||
if not ele.startswith('Traceback') and not ele.startswith(' File'):
|
if not ele.startswith('Traceback') and not ele.startswith(' File'):
|
||||||
error_message = _("Calibre failed with error: %(error)s", error=ele.strip('\n'))
|
error_message = _("Calibre failed with error: %(error)s", error=ele)
|
||||||
return check, error_message
|
return check, error_message
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|
Loading…
Reference in New Issue
Block a user