From b7883325a9e1ce9136f757c2fe9d3c8bbe597949 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Tue, 28 May 2024 16:19:28 -0400 Subject: [PATCH] Woops, `data` can be an empty list XD --- piker/brokers/kucoin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/piker/brokers/kucoin.py b/piker/brokers/kucoin.py index 939d1c60..0f5961ae 100755 --- a/piker/brokers/kucoin.py +++ b/piker/brokers/kucoin.py @@ -305,7 +305,7 @@ class Client: headers=headers, ) json: dict = res.json() - if data := json.get('data'): + if (data := json.get('data')) is not None: return data else: api_url: str = self._http.base_url