From: Raphael Michel Date: Wed, 11 Sep 2019 16:00:12 +0000 (+0200) Subject: Fix infinite loop in touchdown handling X-Git-Tag: v3.0.0~2^2~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=357c03235c32affaa1099a670f3bf2c11b23c2cf;p=thirdparty%2Fpython-fints.git Fix infinite loop in touchdown handling --- diff --git a/fints/client.py b/fints/client.py index bfef2d6..fa91bee 100644 --- a/fints/client.py +++ b/fints/client.py @@ -473,13 +473,14 @@ class FinTS3Client: logger.info('Fetching more results ({})...'.format(touchdown_counter)) touchdown_counter += 1 - while touchdown: + if touchdown: seg = segment_factory(touchdown) - self._send_with_possible_retry(dialog, seg, _continue) + return self._send_with_possible_retry(dialog, seg, _continue) + else: + return responses seg = segment_factory(touchdown) - self._send_with_possible_retry(dialog, seg, _continue) - return responses + return self._send_with_possible_retry(dialog, seg, _continue) def _find_highest_supported_command(self, *segment_classes, **kwargs): """Search the BPD for the highest supported version of a segment."""