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

This commit is contained in:
Yann Leboulanger 2006-05-26 13:26:53 +00:00
parent d848e71d3b
commit 4d024667fd
1 changed files with 3 additions and 1 deletions

View File

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