This commit is contained in:
parent
0a8f177362
commit
29e2e9e97f
1 changed files with 6 additions and 0 deletions
|
@ -7,6 +7,12 @@ from hypercorn.config import Config
|
||||||
from hypercorn.asyncio import serve
|
from hypercorn.asyncio import serve
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
homefolder = str(Path.home())
|
homefolder = str(Path.home())
|
||||||
|
try:
|
||||||
|
os.mkdir(homefolder + "/certs")
|
||||||
|
except FileExistsError:
|
||||||
|
pass
|
||||||
|
except:
|
||||||
|
print(traceback.format_exc())
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
@app.route("/robots.txt")
|
@app.route("/robots.txt")
|
||||||
def robots():
|
def robots():
|
||||||
|
|
Loading…
Add table
Reference in a new issue