mirror of
https://github.com/armbian/dl-router.git
synced 2026-01-06 10:32:39 -08:00
Update main.py
conditionally load uwsgi modiule
This commit is contained in:
@@ -2,7 +2,11 @@
|
||||
|
||||
import json
|
||||
|
||||
import uwsgi
|
||||
try:
|
||||
import uwsgi
|
||||
except:
|
||||
print("not running under uwsgi")
|
||||
|
||||
from flask import (
|
||||
Flask,
|
||||
redirect,
|
||||
|
||||
Reference in New Issue
Block a user