Fix log error
This commit is contained in:
parent
b2834beb8e
commit
ee6e441628
1 changed files with 2 additions and 4 deletions
|
@ -788,11 +788,9 @@ def CatchExceptions(warnuser=False):
|
||||||
try:
|
try:
|
||||||
return func(*args, **kwargs)
|
return func(*args, **kwargs)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
log.error('%s has crashed' % func.__name__)
|
log.error('%s has crashed. Error: %s' % (func.__name__, e))
|
||||||
log.error(addonName, e)
|
|
||||||
import traceback
|
import traceback
|
||||||
log.error(addonName, "Traceback:\n%s"
|
log.error("Traceback:\n%s" % traceback.format_exc())
|
||||||
% traceback.format_exc())
|
|
||||||
if warnuser:
|
if warnuser:
|
||||||
window('plex_scancrashed', value='true')
|
window('plex_scancrashed', value='true')
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue