def dummy_handler(self, etype, value, tb, tb_offset=None):
    print('*** Simple custom exception handler ***')
    print('Exception type :', etype)
    print('Exception value:', value)
    print('Traceback      :', tb)
def dummy_handler(self, etype, value, tb, tb_offset=None):
    print('*** Simple custom exception handler ***')
    print('Exception type :', etype)
    print('Exception value:', value)
    print('Traceback      :', tb)