From 20df6efc55f88dcec1b743a2221f6610c77d6a83 Mon Sep 17 00:00:00 2001 From: black-sliver <59490463+black-sliver@users.noreply.github.com> Date: Sat, 5 Oct 2024 13:58:41 +0200 Subject: [PATCH] WebHost: fix 'too many players' error not showing --- WebHostLib/generate.py | 1 + 1 file changed, 1 insertion(+) diff --git a/WebHostLib/generate.py b/WebHostLib/generate.py index dbe7dd958910..3cac5b6d4cca 100644 --- a/WebHostLib/generate.py +++ b/WebHostLib/generate.py @@ -81,6 +81,7 @@ def start_generation(options: Dict[str, Union[dict, str]], meta: Dict[str, Any]) elif len(gen_options) > app.config["MAX_ROLL"]: flash(f"Sorry, generating of multiworlds is limited to {app.config['MAX_ROLL']} players. " f"If you have a larger group, please generate it yourself and upload it.") + return redirect(request.url) elif len(gen_options) >= app.config["JOB_THRESHOLD"]: gen = Generation( options=pickle.dumps({name: vars(options) for name, options in gen_options.items()}),