From 2a8f39a0a1f20906250fa73cbdbcfc1759cd63c4 Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Mon, 3 Aug 2020 19:19:36 +0200 Subject: [PATCH] correctly report back broken yaml files --- WebHostLib/generate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WebHostLib/generate.py b/WebHostLib/generate.py index c4f03b96..8adde92b 100644 --- a/WebHostLib/generate.py +++ b/WebHostLib/generate.py @@ -30,7 +30,7 @@ def generate(race=False): flash(options) else: results, gen_options = roll_yamls(options) - if any(result == str for result in results.values()): + if any(type(result) == str for result in results.values()): return render_template("checkresult.html", results=results) elif len(gen_options) > app.config["MAX_ROLL"]: flash(f"Sorry, generating of multiworld is limited to {app.config['MAX_ROLL']} players for now. "