From 6c98eec7382af522f98aceee02da0d9f45cda359 Mon Sep 17 00:00:00 2001 From: Richard Bronkhorst Date: Mon, 26 Jun 2023 13:40:11 +0200 Subject: [PATCH] Update commander.py --- nullptr/commander.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nullptr/commander.py b/nullptr/commander.py index 108a877..8b84e92 100644 --- a/nullptr/commander.py +++ b/nullptr/commander.py @@ -130,9 +130,9 @@ class Commander(CommandLine): resource = delivery['trade_symbol'] destination = delivery['destination'] m = self.analyzer.find_closest_markets(resource, 'buy', destination) - if len(m) is None: + if len(m) == 0: m = self.analyzer.find_closest_markets(resource, 'exchange', destination) - if len(m) is None: + if len(m) == 0: print('no market found') return _, m, _, _ = m[0]