From d280a592b1d0b46bb2133185d8ad20852006ad72 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Fri, 5 Aug 2022 11:04:31 -0400 Subject: [PATCH] Repair normalize method logic to only error on lookup failure --- piker/brokers/kraken/api.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/piker/brokers/kraken/api.py b/piker/brokers/kraken/api.py index 36b0199a..80feab49 100644 --- a/piker/brokers/kraken/api.py +++ b/piker/brokers/kraken/api.py @@ -509,10 +509,9 @@ class Client: the 'AssetPairs' endpoint, see methods above. ''' + ticker = cls._ntable[ticker] symlen = len(ticker) if symlen != 6: - ticker = cls._ntable[ticker] - else: raise ValueError(f'Unhandled symbol: {ticker}') return ticker.lower()