Skip to content

Commit efad49e

Browse files
committed
Raise ValueError if no config is found when sending authenticated headers
1 parent d772fe4 commit efad49e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

piker/brokers/kucoin.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,10 @@ def _gen_auth_req_headers(
195195
https://docs.kucoin.com/#authentication
196196
197197
'''
198+
199+
if not self._config:
200+
raise ValueError('No config found when trying to send authenticated request')
201+
198202
str_to_sign = (
199203
str(int(time.time() * 1000)) + action + f'/api/{api_v}{endpoint}'
200204
)

0 commit comments

Comments
 (0)