summaryrefslogtreecommitdiff
path: root/src/leap
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2013-08-01 21:45:03 +0200
committerKali Kaneko <kali@leap.se>2013-08-02 11:12:47 +0200
commit90c932e44173acddb61e358fd34d36422dca9cde (patch)
tree98e5b79e74eecba609e28d405da2412589464fe8 /src/leap
parent6135732761c2e64408c7615eac691c3a44b83faa (diff)
fix for none
Diffstat (limited to 'src/leap')
-rw-r--r--src/leap/services/soledad/soledadbootstrapper.py9
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,))