kopia lustrzana https://github.com/projecthorus/radiosonde_auto_rx
Handle flask-socketio 5.3.0 werkzeug argument
rodzic
81d74fb221
commit
4dc4863a7a
|
|
@ -17,7 +17,7 @@ except ImportError:
|
|||
# MINOR - New sonde type support, other fairly big changes that may result in telemetry or config file incompatability issus.
|
||||
# PATCH - Small changes, or minor feature additions.
|
||||
|
||||
__version__ = "1.6.0-beta7"
|
||||
__version__ = "1.6.0-beta8"
|
||||
|
||||
|
||||
# Global Variables
|
||||
|
|
|
|||
|
|
@ -562,7 +562,12 @@ def refresh_client(arg1):
|
|||
|
||||
def flask_thread(host="0.0.0.0", port=5000):
|
||||
""" Flask Server Thread"""
|
||||
socketio.run(app, host=host, port=port)
|
||||
try:
|
||||
socketio.run(app, host=host, port=port, allow_unsafe_werkzeug=True)
|
||||
except TypeError:
|
||||
# Catch old flask-socketio version.
|
||||
logging.debug("Web - Detected older flask-socketio version (<5.3.0), not using allow_unsafe_werkzeug argument.")
|
||||
socketio.run(app, host=host, port=port)
|
||||
|
||||
|
||||
def start_flask(host="0.0.0.0", port=5000):
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue