Skip to content

client crashes when typing ctrl-c during wizard

During the wizard the systray has not been loaded. When i press CTRL-c during that phase the client prints errors instead of exiting:

^C2014-04-22 10:18:55,664 - DEBUG    - L#75   : leap:sigint_handler() - SIGINT catched. shutting down...
2014-04-22 10:18:55,671 - DEBUG    - L#53   : leap:write() - 2014-04-22 10:18:55+0200 [-] Unhandled Error
2014-04-22 10:18:55,672 - DEBUG    - L#53   : leap:write() - 	Traceback (most recent call last):
2014-04-22 10:18:55,672 - DEBUG    - L#53   : leap:write() - 	  File "apps/launcher.py", line 65, in 
2014-04-22 10:18:55,672 - DEBUG    - L#53   : leap:write() - 	    leap_client()
2014-04-22 10:18:55,672 - DEBUG    - L#53   : leap:write() - 	  File "/home/max/Downloads/Bitmask-linux64-2014-04-17-ee1361ef/apps/leap/bitmask/app.py", line 326, in main
2014-04-22 10:18:55,673 - DEBUG    - L#53   : leap:write() - 	    reactor.run()
2014-04-22 10:18:55,673 - DEBUG    - L#53   : leap:write() - 	  File "/home/max/Downloads/Bitmask-linux64-2014-04-17-ee1361ef/lib/twisted/internet/base.py", line 1192, in run
2014-04-22 10:18:55,673 - DEBUG    - L#53   : leap:write() - 	    self.mainLoop()
2014-04-22 10:18:55,673 - DEBUG    - L#53   : leap:write() - 	  File "/home/max/Downloads/Bitmask-linux64-2014-04-17-ee1361ef/lib/twisted/internet/base.py", line 1201, in mainLoop
2014-04-22 10:18:55,674 - DEBUG    - L#53   : leap:write() - 	    self.runUntilCurrent()
2014-04-22 10:18:55,674 - DEBUG    - L#53   : leap:write() - 	---  ---
2014-04-22 10:18:55,674 - DEBUG    - L#53   : leap:write() - 	  File "/home/max/Downloads/Bitmask-linux64-2014-04-17-ee1361ef/lib/twisted/internet/base.py", line 824, in runUntilCurrent
2014-04-22 10:18:55,675 - DEBUG    - L#53   : leap:write() - 	    call.func(*call.args, **call.kw)
2014-04-22 10:18:55,675 - DEBUG    - L#53   : leap:write() - 	  File "/home/max/Downloads/Bitmask-linux64-2014-04-17-ee1361ef/lib/twisted/internet/task.py", line 218, in __call__
2014-04-22 10:18:55,675 - DEBUG    - L#53   : leap:write() - 	    d = defer.maybeDeferred(self.f, *self.a, **self.kw)
2014-04-22 10:18:55,675 - DEBUG    - L#53   : leap:write() - 	  File "/home/max/Downloads/Bitmask-linux64-2014-04-17-ee1361ef/lib/twisted/internet/defer.py", line 118, in maybeDeferred
2014-04-22 10:18:55,676 - DEBUG    - L#53   : leap:write() - 	    def maybeDeferred(f, *args, **kw):
2014-04-22 10:18:55,676 - DEBUG    - L#53   : leap:write() - 	  File "/home/max/Downloads/Bitmask-linux64-2014-04-17-ee1361ef/apps/leap/bitmask/app.py", line 77, in sigint_handler
2014-04-22 10:18:55,676 - DEBUG    - L#53   : leap:write() - 	    mainwindow.quit()
2014-04-22 10:18:55,676 - DEBUG    - L#53   : leap:write() - 	  File "/home/max/Downloads/Bitmask-linux64-2014-04-17-ee1361ef/apps/leap/bitmask/gui/mainwindow.py", line 2048, in quit
2014-04-22 10:18:55,677 - DEBUG    - L#53   : leap:write() - 	    self._systray.showMessage(
2014-04-22 10:18:55,677 - DEBUG    - L#53   : leap:write() - 	exceptions.AttributeError: 'NoneType' object has no attribute 'showMessage'

(from redmine: created on 2014-04-22, closed on 2014-04-22)