diff --git a/nullptr/analyzer.py b/nullptr/analyzer.py index c0cc9f5..734340d 100644 --- a/nullptr/analyzer.py +++ b/nullptr/analyzer.py @@ -34,6 +34,8 @@ class Analyzer: yield m def find_closest_market(self, resource, sellbuy, location): + if type(location) == str: + location = self.store.get(System, location) market = None distance = None for m in self.find_markets(resource, sellbuy):