soledad: catch HTTPError during initialization
soledad client could capture this HTTPError:
2013-11-10 22:53:07 samsara leap.soledad.client[20544] WARNING IOError: File does not exist: /home/kali/.config/leap/soledad/58409de90a8b54293242e4113b7187be.secret 2013-11-10 22:53:07 samsara leap.soledad.client[20544] INFO Trying to fetch cryptographic secrets from shared recovery database... 2013-11-10 22:53:15 samsara leap.bitmask.services.soledad.soledadbootstrapper[20544] WARNING Error while initializing soledad 2013-11-10 22:53:15 samsara leap.bitmask.services.soledad.soledadbootstrapper[20544] ERROR Error whie initializing soledad (HTTPError) Traceback (most recent call last): File "/home/kali/leap/leap_client/src/leap/bitmask/services/soledad/soledadbootstrapper.py", line 253, in _try_soledad_init auth_token=auth_token) File "/home/kali/Virtualenvs/leap-bitmask/local/lib/python2.7/site-packages/leap.soledad.client-0.4.2-py2.7.egg/leap/soledad/client/__init__.py", line 284, in __init__ self._bootstrap() # might raise BootstrapSequenceError() File "/home/kali/Virtualenvs/leap-bitmask/local/lib/python2.7/site-packages/leap.soledad.client-0.4.2-py2.7.egg/leap/soledad/client/__init__.py", line 351, in _bootstrap token, timeout = self._shared_db.lock() File "/home/kali/Virtualenvs/leap-bitmask/local/lib/python2.7/site-packages/leap.soledad.client-0.4.2-py2.7.egg/leap/soledad/client/shared_db.py", line 157, in lock body={}) File "/home/kali/Virtualenvs/leap-bitmask/local/lib/python2.7/site-packages/u1db-13.08-py2.7.egg/u1db/remote/http_client.py", line 217, in _request_json content_type) File "/home/kali/Virtualenvs/leap-bitmask/local/lib/python2.7/site-packages/u1db-13.08-py2.7.egg/u1db/remote/http_client.py", line 209, in _request return self._response() File "/home/kali/Virtualenvs/leap-bitmask/local/lib/python2.7/site-packages/u1db-13.08-py2.7.egg/u1db/remote/http_client.py", line 160, in _response raise errors.HTTPError(resp.status, body, headers) HTTPError: HTTPError(408, '{}\r\n')
(Btw, 408 - request timeout, any hint as to why is this happening?)
(from redmine: created on 2013-11-11, closed on 2014-01-06, relates #4890 (closed))