mirror of
https://github.com/onionshare/onionshare.git
synced 2024-12-28 08:49:30 -05: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
3af05dcc20
commit
436dd3052d
@ -22,7 +22,10 @@ from .receive_mode import ReceiveModeWeb, ReceiveModeWSGIMiddleware, ReceiveMode
|
||||
def stubbed_show_server_banner(env, debug, app_import_path, eager_loading):
|
||||
pass
|
||||
|
||||
flask.cli.show_server_banner = stubbed_show_server_banner
|
||||
try:
|
||||
flask.cli.show_server_banner = stubbed_show_server_banner
|
||||
except:
|
||||
pass
|
||||
|
||||
|
||||
class Web(object):
|
||||
|
Loading…
Reference in New Issue
Block a user