diff --git a/source/item/District.py b/source/item/District.py index baf46a82..1ad4fba6 100644 --- a/source/item/District.py +++ b/source/item/District.py @@ -111,7 +111,7 @@ def resolve_districts(world): visited = set() while len(queue) > 0: region = queue.pop() - if not region: + if region is None: RuntimeError(f'No region connected to entrance: {ent.name} Likely a missing entry in OWExitTypes') visited.add(region) if region.type == RegionType.Cave: