Skip to content
Snippets Groups Projects
Commit 4d024667 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

always use excepthook.py under win (isatty() is not supported)

parent d848e71d
No related branches found
No related tags found
No related merge requests found
......@@ -27,6 +27,7 @@
##
import sys
import os
import traceback
import threading
......@@ -102,7 +103,8 @@ def _info(type, value, tb):
_exception_in_progress.release()
if not sys.stderr.isatty(): # gdb/kdm etc if we use startx this is not True
# gdb/kdm etc if we use startx this is not True
if os.name == 'nt' or not sys.stderr.isatty():
#FIXME: maybe always show dialog?
_excepthook_save = sys.excepthook
sys.excepthook = _info
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment