class Show: def this_fails(self): x = 1/0 def __init__(self): try: self.this_fails() except: raise #print 'Handling run-time error:', detail if __name__ == '__main__': s = Show()