summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/backend
diff options
context:
space:
mode:
authorIvan Alejandro <ivanalejandro0@gmail.com>2015-07-23 18:45:08 -0300
committerIvan Alejandro <ivanalejandro0@gmail.com>2015-08-14 15:28:19 -0300
commit182dd2738f077079a47d3f56033b78dac9204986 (patch)
tree599cf5dc1dd6ba2f43e5ffae528793ba35e116dc /src/leap/bitmask/backend
parentddd112e53179cbccbf852d3dd70a80cfc171a957 (diff)
[bug] handle eip-config not providing locations
Is valid for a provider not to provide locations for their gateways. - Resolves: #7281
Diffstat (limited to 'src/leap/bitmask/backend')
-rw-r--r--src/leap/bitmask/backend/components.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/leap/bitmask/backend/components.py b/src/leap/bitmask/backend/components.py
index b833bf59..5f34d290 100644
--- a/src/leap/bitmask/backend/components.py
+++ b/src/leap/bitmask/backend/components.py
@@ -628,7 +628,9 @@ class EIP(object):
# this only works for selecting the first gateway, as we're
# currently doing.
ccodes = gateway_selector.get_gateways_country_code()
- gateway_ccode = ccodes[gateways[0]]
+ gateway_ccode = '' # '' instead of None due to needed signal argument
+ if ccodes is not None:
+ gateway_ccode = ccodes[gateways[0]]
self._signaler.signal(self._signaler.eip_get_gateway_country_code,
gateway_ccode)