diff options
author | Kali Kaneko <kali@leap.se> | 2013-08-01 21:45:03 +0200 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2013-08-02 11:12:47 +0200 |
commit | 90c932e44173acddb61e358fd34d36422dca9cde (patch) | |
tree | 98e5b79e74eecba609e28d405da2412589464fe8 /src/leap/services | |
parent | 6135732761c2e64408c7615eac691c3a44b83faa (diff) |
fix for none
Diffstat (limited to 'src/leap/services')
-rw-r--r-- | src/leap/services/soledad/soledadbootstrapper.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/leap/services/soledad/soledadbootstrapper.py b/src/leap/services/soledad/soledadbootstrapper.py index ac063152..208ad34c 100644 --- a/src/leap/services/soledad/soledadbootstrapper.py +++ b/src/leap/services/soledad/soledadbootstrapper.py @@ -89,11 +89,12 @@ class SoledadBootstrapper(AbstractBootstrapper): # TODO: Select server based on timezone (issue #3308) server_dict = self._soledad_config.get_hosts() - if len(server_dict.keys() > 0): + if server_dict.keys(): selected_server = server_dict[server_dict.keys()[0]] - server_url = "https://%s:%s/user-%s" % (selected_server["hostname"], - selected_server["port"], - uuid) + server_url = "https://%s:%s/user-%s" % ( + selected_server["hostname"], + selected_server["port"], + uuid) logger.debug("Using soledad server url: %s" % (server_url,)) |