Fix - missing traceback on uncaught error

This commit is contained in:
f3flight 2016-05-11 22:51:37 +00:00
parent e7c2811504
commit 4bd4b591fa

View File

@ -48,7 +48,7 @@ def interrupt_wrapper(f):
except KeyboardInterrupt:
logging.warning('Interrupted, exiting.')
except Exception as e:
logging.error('Error: %s' % e)
logging.error('Error: %s' % e, exc_info=True)
for k in dir(e):
'''debug: print all exception attrs except internal
and except 'message', which is deprecated since Python 2.6'''