correctly report back broken yaml files

This commit is contained in:
Fabian Dill 2020-08-03 19:19:36 +02:00
parent 45edb64ca8
commit 2a8f39a0a1
1 changed files with 1 additions and 1 deletions

View File

@ -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. "