From fbda97df61f1aa8cee4a196d7b4c04af5c94c7f0 Mon Sep 17 00:00:00 2001 From: Richard Bronkhorst Date: Tue, 20 Jun 2023 22:18:20 +0200 Subject: [PATCH] Update analyzer.py --- nullptr/analyzer.py | 2 ++ 1 file changed, 2 insertions(+) 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):