Bitmask CLI raises an exception when logging out
Using:
- bitmask-dev: 1e6a435a
- soledad: a7ffb49e1169c93af3b728f5db1a5e16e6231590
- cdev env: with experimental-0.9 platform and beta soledad 0.9.0
Then I'm typing the following commands:
bitmaskctl launch bitmaskctl user auth drebs@cdev.bitmask.net
After that, I try to logout, and get the following:
$ bitmaskctl user logout drebs@cdev.bitmask.net Unhandled error in Deferred: Traceback (most recent call last): File "/home/drebs/.venv/local/lib/python2.7/site-packages/twisted/python/context.py", line 81, in callWithContext return func(*args,**kw) File "/home/drebs/.venv/local/lib/python2.7/site-packages/txzmq/req_rep.py", line 140, in messageReceived d.callback(msg) File "/home/drebs/.venv/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 393, in callback self._startRunCallbacks(result) File "/home/drebs/.venv/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 501, in _startRunCallbacks self._runCallbacks() --- --- File "/home/drebs/.venv/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 588, in _runCallbacks current.result = callback(current.result, *args, **kw) File "/home/drebs/dev/leap/repos/bitmask-dev/src/leap/bitmask/cli/command.py", line 112, in _check_err return printer(obj['result']) File "/home/drebs/dev/leap/repos/bitmask-dev/src/leap/bitmask/cli/command.py", line 42, in default_dict_printer for key, value in result.items(): exceptions.AttributeError: 'NoneType' object has no attribute 'items'
Logout seems to work, though (it's a CLI-only bug). This is the log for after the logout command:
2016-09-12T15:12:07-0300 [ZMQ] LOGOUT for drebs@cdev.bitmask.net 2016-09-12T15:12:07-0300 [twisted.web.client._HTTP11ClientFactory#info] Starting factory 2016-09-12T15:12:09-0300 [stdout#info] AUTH 2016-09-12T15:12:09-0300 [stdout#info] resetting user/pass 2016-09-12T15:12:09-0300 [twisted.web.client._HTTP11ClientFactory#info] Stopping factory
(from redmine: created on 2016-09-12, closed on 2016-09-27, relates #8479 (closed))