Excepthook override needs the logging module to work, so setup logging first.
This commit is contained in:
parent
57f69916eb
commit
8d416b763d
@ -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'):
|
||||
|
Reference in New Issue
Block a user