From 43643870da17693042428e2d385688dd6dbc88d2 Mon Sep 17 00:00:00 2001 From: CaitSith2 Date: Fri, 5 Mar 2021 11:40:24 -0800 Subject: [PATCH] Remove the last bit of code that required unsafe yaml loading. --- Mystery.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/Mystery.py b/Mystery.py index 98f07230..200f832e 100644 --- a/Mystery.py +++ b/Mystery.py @@ -373,8 +373,6 @@ def roll_triggers(weights: dict) -> dict: def roll_settings(weights: dict, plando_options: typing.Set[str] = frozenset(("bosses"))): if "pre_rolled" in weights: pre_rolled = weights["pre_rolled"] - if isinstance(pre_rolled, argparse.Namespace): - return pre_rolled # Still accept old format pre-rolled, but only with unsafe loading. if "plando_items" in pre_rolled: pre_rolled["plando_items"] = [PlandoItem(item["item"],