Open
Description
Hi Raphael, hi everybody,
thanks for this great project. Recently I found the get_holdings method is not working anymore for the ING.
Problem:
It seems they return bytes instead of strings:
TypeError: descriptor 'splitlines' requires a 'str' object but received a 'bytes'
Hence, the following line in client.py doesn't work anymore for me:
mt535_lines = str.splitlines(resp.holdings)
Solution:
with the following (dirty) hack:
try:
mt535_lines = str.splitlines(resp.holdings)
del mt535_lines[0] # The first line is empty - drop it.
except:
mt535_lines = str(resp).split('\\r\\n')
mt535_lines = mt535_lines[:-1] # The last line is empty - drop it.
it works again.
Would be great to have this, or in another (better) way implemented.
Thank you very much in advance and best wishes,
Mat