From 53e6ca6e34d42223e5ea578d32a875a1ad081c95 Mon Sep 17 00:00:00 2001 From: espeon65536 Date: Tue, 5 Oct 2021 17:55:15 -0500 Subject: [PATCH] Core: better error message for exclusion failure --- worlds/generic/Rules.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worlds/generic/Rules.py b/worlds/generic/Rules.py index e442a66e..9e7892c0 100644 --- a/worlds/generic/Rules.py +++ b/worlds/generic/Rules.py @@ -29,7 +29,7 @@ def exclusion_rules(world, player: int, exclude_locations: typing.Set[str]): location.excluded = True except KeyError as e: # failed to find the given location. Check if it's a legitimate location if loc_name not in world.worlds[player].location_name_to_id: - raise Exception(f"Could not find location {loc_name} in player {player}'s world.") from e + raise Exception(f"Unable to exclude location {loc_name} in player {player}'s world.") from e def set_rule(spot, rule: CollectionRule): spot.access_rule = rule