Excepthook override needs the logging module to work, so setup logging first.

This commit is contained in:
David Vierra 2015-02-11 04:48:10 -10:00
parent 57f69916eb
commit 8d416b763d

View File

@ -103,8 +103,8 @@ if "-debug" in sys.argv:
@profiler.function("startup")
def startup():
global editorApp
sys.excepthook = excepthook
setup_logging()
sys.excepthook = excepthook
import pygments.lexers
if hasattr(pygments.lexers, 'newmod'):