Skip to content

Commit

Permalink
Version 1.6.3
Browse files Browse the repository at this point in the history
  • Loading branch information
filak committed Jan 25, 2024
1 parent 1fc345d commit 1aec38e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions flask-app/mtw-server.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ def start():
server_name=args.fqdn,
url_prefix=args.prefix,
relax=args.relax)

if not app:
print('Server cannot be started - check the config / modify the args / check if the port is available')
return

if getattr(sys, 'frozen', False):
app.static_folder = os.path.join(os.path.dirname(sys.executable), 'static')
Expand Down
4 changes: 4 additions & 0 deletions flask-app/mtw-worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ def start():
app = create_app(debug=args.debug, logger=logger, port=args.port,
config_path=args.config,
relax=args.relax)

if not app:
print('Server cannot be started - check the config / modify the args / check if the port is available')
return

if getattr(sys, 'frozen', False):
app.static_folder = os.path.join(os.path.dirname(sys.executable), 'static')
Expand Down

0 comments on commit 1aec38e

Please sign in to comment.