Update main.py

conditionally load uwsgi modiule
This commit is contained in:
jeanrhum
2021-03-15 15:11:10 +01:00
committed by GitHub
parent 96d55a9bdd
commit 93b110b557

View File

@@ -2,7 +2,11 @@
import json
import uwsgi
try:
import uwsgi
except:
print("not running under uwsgi")
from flask import (
Flask,
redirect,