Update server.py
All checks were successful
Test web app / check (push) Successful in 34s

This commit is contained in:
Nova Cat 2025-01-18 19:00:53 -08:00
parent 0a8f177362
commit 29e2e9e97f

View file

@ -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():