Fix log error

This commit is contained in:
tomkat83 2016-09-04 17:14:52 +02:00
parent b2834beb8e
commit ee6e441628

View file

@ -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