mirror of
https://github.com/onionshare/onionshare.git
synced 2025-08-01 02:46:22 -04:00
Add try/except block when stubbing flash's show_server_banner, in order to support older versions of flask
This commit is contained in:
parent
d86b13d91c
commit
f1c8ba9344
1 changed files with 4 additions and 1 deletions
|
@ -22,7 +22,10 @@ from .receive_mode import ReceiveModeWeb, ReceiveModeWSGIMiddleware, ReceiveMode
|
||||||
def stubbed_show_server_banner(env, debug, app_import_path, eager_loading):
|
def stubbed_show_server_banner(env, debug, app_import_path, eager_loading):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
try:
|
||||||
flask.cli.show_server_banner = stubbed_show_server_banner
|
flask.cli.show_server_banner = stubbed_show_server_banner
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
class Web(object):
|
class Web(object):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue