Safely create base socket dir
This commit is contained in:
parent
c2b6c38d37
commit
28a127b619
1 changed files with 4 additions and 1 deletions
|
@ -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():
|
||||
|
|
Reference in a new issue