summaryrefslogtreecommitdiff
path: root/src/leap/bitmask
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2018-01-17 23:09:42 +0100
committerKali Kaneko <kali@leap.se>2018-01-25 01:19:15 +0100
commit276c717b0d1d662cabc117cea7373418efedde09 (patch)
tree8760ed3b13e155b87a167e99a7ed59f411697bc1 /src/leap/bitmask
parentbb69e8a2bd6117ee432e7b9ced09f200d61926b7 (diff)
[bug] check if attribute exists
Diffstat (limited to 'src/leap/bitmask')
-rw-r--r--src/leap/bitmask/vpn/launchers/linux.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/leap/bitmask/vpn/launchers/linux.py b/src/leap/bitmask/vpn/launchers/linux.py
index 0e145e50..b0cd4f7f 100644
--- a/src/leap/bitmask/vpn/launchers/linux.py
+++ b/src/leap/bitmask/vpn/launchers/linux.py
@@ -201,7 +201,7 @@ class LinuxVPNLauncher(VPNLauncher):
:type tries: int
"""
if tries < TERMINATE_MAXTRIES:
- if proc.transport.pid is None:
+ if proc.transport and proc.transport.pid is None:
deferred.callback(True)
return
else: