fix: system_all_log.html ReferenceError and other updates
This commit is contained in:
13
main.py
13
main.py
@@ -3,12 +3,21 @@
|
||||
|
||||
monkey.patch_all()
|
||||
print("[MAIN] gevent mokey patch!!")
|
||||
except Exception:
|
||||
print("[MAIN] gevent not installed!!")
|
||||
except Exception as e:
|
||||
print(f"[MAIN] gevent not installed or failed to load: {e}")
|
||||
# import traceback; traceback.print_exc()
|
||||
import os
|
||||
import sys
|
||||
import traceback
|
||||
|
||||
import flask
|
||||
import markupsafe
|
||||
flask.Markup = markupsafe.Markup
|
||||
sys.modules['flask.Markup'] = markupsafe.Markup # Backup for some import styles
|
||||
# Injecting into flask module members for 'from flask import Markup'
|
||||
if not hasattr(flask, 'Markup'):
|
||||
setattr(flask, 'Markup', markupsafe.Markup)
|
||||
|
||||
try:
|
||||
import platform
|
||||
|
||||
|
||||
Reference in New Issue
Block a user