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:
|
||||
return func(*args, **kwargs)
|
||||
except Exception as e:
|
||||
log.error('%s has crashed' % func.__name__)
|
||||
log.error(addonName, e)
|
||||
log.error('%s has crashed. Error: %s' % (func.__name__, e))
|
||||
import traceback
|
||||
log.error(addonName, "Traceback:\n%s"
|
||||
% traceback.format_exc())
|
||||
log.error("Traceback:\n%s" % traceback.format_exc())
|
||||
if warnuser:
|
||||
window('plex_scancrashed', value='true')
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue