diff --git a/catfish/utils/sockets.py b/catfish/utils/sockets.py index cc1e8e6..eb52a26 100644 --- a/catfish/utils/sockets.py +++ b/catfish/utils/sockets.py @@ -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():