diff --git a/server.py b/server.py index 9117a1b..9808502 100644 --- a/server.py +++ b/server.py @@ -7,6 +7,12 @@ from hypercorn.config import Config from hypercorn.asyncio import serve from pathlib import Path homefolder = str(Path.home()) +try: + os.mkdir(homefolder + "/certs") +except FileExistsError: + pass +except: + print(traceback.format_exc()) app = Flask(__name__) @app.route("/robots.txt") def robots():