Add traceback support to the session too

This commit is contained in:
Dan Williams 2006-08-17 12:02:29 -04:00
parent 01bc6cc71d
commit 4c923db7ea

View File

@ -71,7 +71,10 @@ class Session:
shell.set_console(console) shell.set_console(console)
shell.start() shell.start()
from sugar import TracebackUtils
tbh = TracebackUtils.TracebackHelper()
try: try:
gtk.main() gtk.main()
except KeyboardInterrupt: except KeyboardInterrupt:
print 'Ctrl+C pressed, exiting...' print 'Ctrl+C pressed, exiting...'
del tbh