Repair normalize method logic to only error on lookup failure
parent
ef5829a6b7
commit
d280a592b1
|
@ -509,10 +509,9 @@ class Client:
|
||||||
the 'AssetPairs' endpoint, see methods above.
|
the 'AssetPairs' endpoint, see methods above.
|
||||||
|
|
||||||
'''
|
'''
|
||||||
|
ticker = cls._ntable[ticker]
|
||||||
symlen = len(ticker)
|
symlen = len(ticker)
|
||||||
if symlen != 6:
|
if symlen != 6:
|
||||||
ticker = cls._ntable[ticker]
|
|
||||||
else:
|
|
||||||
raise ValueError(f'Unhandled symbol: {ticker}')
|
raise ValueError(f'Unhandled symbol: {ticker}')
|
||||||
|
|
||||||
return ticker.lower()
|
return ticker.lower()
|
||||||
|
|
Loading…
Reference in New Issue