import sys def exception_handler(type, value, traceback): print('hui') sys.excepthook = exception_handler 1/0
Standard input is empty
hui
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!