diff options
author | Kali Kaneko <kali@leap.se> | 2013-06-24 23:41:46 +0900 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2013-06-24 23:41:46 +0900 |
commit | 071cbe0e31f73ad774551a5d5474be9edb7a9c5c (patch) | |
tree | 60b2715d9fb42764a8be061af2be29749cdbce51 /src/leap/services/eip/vpnlaunchers.py | |
parent | 4a0536e5831eeac539c1b746932e60d4dd5e9591 (diff) | |
parent | f9257a1bf085736592a6a8daca4d4e11dfcc1748 (diff) |
Merge remote-tracking branch 'chiiph/bug/catch_oserror' into develop
Diffstat (limited to 'src/leap/services/eip/vpnlaunchers.py')
-rw-r--r-- | src/leap/services/eip/vpnlaunchers.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/leap/services/eip/vpnlaunchers.py b/src/leap/services/eip/vpnlaunchers.py index c5b21eac..7449acd0 100644 --- a/src/leap/services/eip/vpnlaunchers.py +++ b/src/leap/services/eip/vpnlaunchers.py @@ -168,7 +168,11 @@ def _has_updown_scripts(path, warn=True): "Might produce DNS leaks." % (path,)) # XXX check if applies in win - is_exe = (stat.S_IXUSR & os.stat(path)[stat.ST_MODE] != 0) + is_exe = False + try: + is_exe = (stat.S_IXUSR & os.stat(path)[stat.ST_MODE] != 0) + except OSError as e: + logger.warn("%s" % (e,)) if warn and not is_exe: logger.error("Up/down script %s is not executable. " "Might produce DNS leaks." % (path,)) |