Skip to content

Commit 05ad960

Browse files
committed
fix test
1 parent fe55c51 commit 05ad960

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tale/parse_utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -744,6 +744,8 @@ def load_item_spawners(json_spawners: list, zones: dict, world_items: list) -> l
744744
def validate_direction(direction: str):
745745
""" Asserts that the direction is valid"""
746746
valid_directions = ['north', 'south', 'east', 'west', 'up', 'down', 'northeast', 'northwest', 'southeast', 'southwest', 'in', 'out']
747+
if not direction:
748+
return None
747749
if direction.lower() in valid_directions:
748750
return direction.lower()
749751
if direction == 'n':

0 commit comments

Comments
 (0)