mirror of
https://gitlab.com/RemixDev/deemix-py.git
synced 2024-12-28 18:46:13 +00:00
Add stack to unknown error report
This commit is contained in:
parent
ae5243288d
commit
e61a9aa626
|
@ -1,5 +1,6 @@
|
|||
from concurrent.futures import ThreadPoolExecutor
|
||||
from time import sleep
|
||||
import traceback
|
||||
|
||||
from os.path import sep as pathSep
|
||||
from os import makedirs, system as execute
|
||||
|
@ -487,7 +488,8 @@ class Downloader:
|
|||
logger.exception("%s %s", f"{itemData['artist']} - {itemData['title']}", e)
|
||||
result = {'error': {
|
||||
'message': str(e),
|
||||
'data': itemData
|
||||
'data': itemData,
|
||||
'stack': traceback.format_exc()
|
||||
}}
|
||||
|
||||
if 'error' in result:
|
||||
|
@ -501,7 +503,8 @@ class Downloader:
|
|||
'failed': True,
|
||||
'data': error['data'],
|
||||
'error': error['message'],
|
||||
'errid': error['errid'] if 'errid' in error else None
|
||||
'errid': error['errid'] if 'errid' in error else None,
|
||||
'stack': error['stack'] if 'stack' in error else None
|
||||
})
|
||||
return result
|
||||
|
||||
|
|
Loading…
Reference in a new issue