From 276c717b0d1d662cabc117cea7373418efedde09 Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Wed, 17 Jan 2018 23:09:42 +0100 Subject: [bug] check if attribute exists --- src/leap/bitmask/vpn/launchers/linux.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- cgit v1.2.3