summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/vpn/process.py
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2017-08-28 23:42:53 -0400
committerKali Kaneko <kali@leap.se>2017-08-30 16:18:56 -0400
commitec3c4a21b24afac389a10bdbbb9ac36acd2a6ffb (patch)
tree8e9ef63ae61244641421d858fe08f0410bfd6ada /src/leap/bitmask/vpn/process.py
parent081ef137ab4d1325a46a24752b11a60b953c1bb4 (diff)
[bug] assign initial empty state
Diffstat (limited to 'src/leap/bitmask/vpn/process.py')
-rw-r--r--src/leap/bitmask/vpn/process.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/leap/bitmask/vpn/process.py b/src/leap/bitmask/vpn/process.py
index d35857c7..8c61db21 100644
--- a/src/leap/bitmask/vpn/process.py
+++ b/src/leap/bitmask/vpn/process.py
@@ -91,7 +91,8 @@ class _VPNProcess(protocol.ProcessProtocol):
if socket_port == 'unix':
folder = os.path.split(self._host)[0]
- assert os.path.isfile(folder)
+ if not os.path.isdir(folder):
+ os.makedirs(folder)
self._management_endpoint = clientFromString(
reactor, b"unix:path=%s" % socket_host)
else: