Safely create base socket dir

This commit is contained in:
Jake Howard 2018-12-14 19:04:37 +00:00
parent c2b6c38d37
commit 28a127b619
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -28,7 +28,10 @@ def read_all_from_socket(socket):
def create_base_socket_dir():
os.mkdir(BASE_SOCKET_DIR)
try:
os.mkdir(BASE_SOCKET_DIR)
except FileExistsError:
pass
def delete_base_socket_dir():