From: Niels Grieger Date: Wed, 27 Feb 2019 08:51:16 +0000 (+0100) Subject: fix: fix type error during get_holdings request X-Git-Tag: v2.2.0~14^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7cb7e981290ac3851503569814758332e8bee8b4;p=thirdparty%2Fpython-fints.git fix: fix type error during get_holdings request --- diff --git a/fints/client.py b/fints/client.py index 55cb3ab..c5a7d72 100644 --- a/fints/client.py +++ b/fints/client.py @@ -605,7 +605,12 @@ class FinTS3Client: holdings = [] for resp in responses: - mt535_lines = str.splitlines(resp.holdings) + if type(resp.holdings) == bytes: + holding_str = resp.holdings.decode() + else: + holding_str = resp.holdings + + mt535_lines = str.splitlines(holding_str) # The first line is empty - drop it. del mt535_lines[0] mt535 = MT535_Miniparser()