From 29e2e9e97f649ce413ca6fd2cb3068ec4f7786fa Mon Sep 17 00:00:00 2001 From: swee Date: Sat, 18 Jan 2025 19:00:53 -0800 Subject: [PATCH] Update server.py --- server.py | 6 ++++++ 1 file changed, 6 insertions(+) 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():