diff options
author | Kali Kaneko <kali@leap.se> | 2018-01-04 18:38:01 +0100 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2018-01-06 19:57:56 +0100 |
commit | 2b5b79b114423f8d68c992d1bd0bb251e2dfba2b (patch) | |
tree | e18fb30a115cf5358b58727e1e047833ed81cd26 /src/leap/bitmask/cli/command.py | |
parent | 501379ee09c3510d1737d6292a2dd5732c19dfef (diff) |
[style] pep8
Diffstat (limited to 'src/leap/bitmask/cli/command.py')
-rw-r--r-- | src/leap/bitmask/cli/command.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/leap/bitmask/cli/command.py b/src/leap/bitmask/cli/command.py index fd32ab95..a70b2d43 100644 --- a/src/leap/bitmask/cli/command.py +++ b/src/leap/bitmask/cli/command.py @@ -166,15 +166,15 @@ class Command(object): print(json.dumps(obj, indent=2)) elif not obj['error']: if 'result' not in obj: - print (Fore.RED + 'ERROR: malformed response, expected' - ' obj["result"]' + Fore.RESET) + print(Fore.RED + 'ERROR: malformed response, expected' + ' obj["result"]' + Fore.RESET) elif obj['result'] is None: - print (Fore.RED + 'ERROR: empty response. Check logs.' + - Fore.RESET) + print(Fore.RED + 'ERROR: empty response. Check logs.' + + Fore.RESET) else: return printer(obj['result']) else: - print Fore.RED + 'ERROR: ' + '%s' % obj['error'] + Fore.RESET + print(Fore.RED + 'ERROR: ' + '%s' % obj['error'] + Fore.RESET) def _timeout_handler(self, failure, errb): if failure.trap(ZmqRequestTimeoutError) == ZmqRequestTimeoutError: |