From 30efdfb65d6337b151ab3c86634eb9ce6ed14d78 Mon Sep 17 00:00:00 2001 From: codemann8 Date: Wed, 7 Jul 2021 19:53:49 -0500 Subject: [PATCH] Better handling of when sortedcontainers is missing --- OverworldShuffle.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/OverworldShuffle.py b/OverworldShuffle.py index 03991a47..d8b5e15b 100644 --- a/OverworldShuffle.py +++ b/OverworldShuffle.py @@ -1,7 +1,10 @@ import random, logging, copy -from sortedcontainers import SortedList from BaseClasses import OWEdge, WorldType, RegionType, Direction, Terrain, PolSlot from OWEdges import OWTileGroups, OWEdgeGroups, OpenStd, parallel_links, IsParallel +try: + from sortedcontainers import SortedList +except ImportError: + raise Exception('Could not load sortedcontainers module') __version__ = '0.1.6.4-u'