Ticket #178: exception-handling-fix.patch
File exception-handling-fix.patch, 980 bytes (added by , 12 years ago) |
---|
-
winswitch/server/controller.py
539 539 try: 540 540 display_no = int(display) 541 541 except Exception, e: 542 self.serror("%s is not an X lockfile: " % (display, e))542 self.serror("%s is not an X lockfile: %s" % (display, e)) 543 543 continue 544 544 port = X_PORT_BASE+display_no 545 545 detected.append(port) -
winswitch/server/server_wrapper.py
65 65 exit_code = 0 66 66 except Exception, e: 67 67 print("winswitch_server.py") 68 print('*** Caught exception: %s: %s' % ( e.__cl, e))68 print('*** Caught exception: %s: %s' % (type(e).__name__, e)) 69 69 traceback.print_exc() 70 70 exit_code = 1 71 71 server.cleanup()