try : 1/0 except Exception as e: print e C:Python27python.exe C:/Users/TLCB/PycharmProjects/untitled2/socket/t8.py integer division or modulo by zero