Catch exception during registration errors
We should check for none and raise a less cryptic exception here.
2014-01-26 20:03:11,283 - leap:main:L#264 - INFO - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2014-01-26 20:03:11,298 - leap:main:L#265 - INFO - Bitmask version 0.3.8-80-g8a05b6f 2014-01-26 20:03:11,299 - leap:main:L#266 - INFO - leap.mail version 0.3.8-114-ge9db0eb 2014-01-26 20:03:11,301 - leap:main:L#267 - INFO - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2014-01-26 20:03:11,302 - leap:main:L#269 - INFO - Starting app 2014-01-26 20:03:11,393 - leap:install_qtreactor:L#80 - DEBUG - Qt4 reactor installed 2014-01-26 20:03:11,468 - leap:write:L#53 - DEBUG - 2014-01-26 20:03:11-0400 [-] Starting worker... 2014-01-26 20:03:11,567 - leap.bitmask.platform_init.initializers:init_platform:L#60 - DEBUG - Running initializer for Linux 2014-01-26 20:03:11,617 - leap.bitmask.gui.mainwindow:start_eip_machine:L#1353 - DEBUG - eip machine started 2014-01-26 20:03:11,619 - leap.bitmask.services.mail.conductor:start_mail_machine:L#370 - DEBUG - Starting mail state machine... 2014-01-26 20:03:11,772 - leap.bitmask.gui.eip_status:set_eip_status:L#298 - DEBUG - 2014-01-26 20:03:11,775 - leap.bitmask.gui.mainwindow:_stop_eip:L#1532 - DEBUG - Setting autostart to: False 2014-01-26 20:03:11,786 - leap.bitmask.gui.eip_status:set_eip_status:L#298 - DEBUG - Disabled 2014-01-26 20:03:11,802 - leap.bitmask.gui.twisted_main:start:L#38 - DEBUG - starting twisted reactor 2014-01-26 20:03:11,820 - leap.bitmask.gui.statemachines:onEntry:L#59 - DEBUG - State Mail::off entered. Emitting signal ... 2014-01-26 20:03:33,177 - leap.bitmask.crypto.srpregister:register_user:L#128 - DEBUG - Post to uri: https://api.dev.bitmask.net:4430/1/users 2014-01-26 20:03:33,181 - leap.bitmask.crypto.srpregister:register_user:L#129 - DEBUG - Will try to register user = test_f19 2014-01-26 20:03:33,187 - leap.bitmask.config.providerconfig:get_ca_cert_path:L#183 - DEBUG - Going to verify SSL against /home/kali/.config/leap/providers/dev.bitmask.net/keys/ca/cacert.pem 2014-01-26 20:03:34,837 - leap.bitmask.gui.wizard:_registration_finished:L#332 - ERROR - Unknown error: AttributeError("'NoneType' object has no attribute 'get'",) 2014-01-26 20:03:38,718 - leap.bitmask.crypto.srpregister:register_user:L#128 - DEBUG - Post to uri: https://api.dev.bitmask.net:4430/1/users 2014-01-26 20:03:38,720 - leap.bitmask.crypto.srpregister:register_user:L#129 - DEBUG - Will try to register user = test_f19 2014-01-26 20:03:38,724 - leap.bitmask.config.providerconfig:get_ca_cert_path:L#183 - DEBUG - Going to verify SSL against /home/kali/.config/leap/providers/dev.bitmask.net/keys/ca/cacert.pem 2014-01-26 20:03:40,476 - leap.bitmask.gui.wizard:_registration_finished:L#332 - ERROR - Unknown error: AttributeError("'NoneType' object has no attribute 'get'",) 2014-01-26 20:03:43,985 - leap.bitmask.crypto.srpregister:register_user:L#128 - DEBUG - Post to uri: https://api.dev.bitmask.net:4430/1/users 2014-01-26 20:03:43,990 - leap.bitmask.crypto.srpregister:register_user:L#129 - DEBUG - Will try to register user = test_f20 2014-01-26 20:03:43,992 - leap.bitmask.config.providerconfig:get_ca_cert_path:L#183 - DEBUG - Going to verify SSL against /home/kali/.config/leap/providers/dev.bitmask.net/keys/ca/cacert.pem 2014-01-26 20:03:45,704 - leap.bitmask.gui.wizard:_registration_finished:L#332 - ERROR - Unknown error: AttributeError("'NoneType' object has no attribute 'get'",) 2014-01-26 20:04:01,006 - leap.bitmask.crypto.srpregister:register_user:L#128 - DEBUG - Post to uri: https://api.dev.bitmask.net:4430/1/users 2014-01-26 20:04:01,007 - leap.bitmask.crypto.srpregister:register_user:L#129 - DEBUG - Will try to register user = test_f20 2014-01-26 20:04:01,008 - leap.bitmask.config.providerconfig:get_ca_cert_path:L#183 - DEBUG - Going to verify SSL against /home/kali/.config/leap/providers/dev.bitmask.net/keys/ca/cacert.pem 2014-01-26 20:04:03,131 - leap.bitmask.gui.wizard:_registration_finished:L#332 - ERROR - Unknown error: AttributeError("'NoneType' object has no attribute 'get'",) ^C2014-01-26 20:04:09,351 - leap:sigint_handler:L#72 - DEBUG - SIGINT catched. shutting down...
(from redmine: created on 2014-01-27)