From: Raphael Michel Date: Thu, 29 Nov 2018 17:04:23 +0000 (+0100) Subject: Replace another ValueError with FinTSUnsupportedOperation X-Git-Tag: v2.0.0~1^2~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=343fbccaeca49eb0da15c085f6a6decac1dd9ef7;p=thirdparty%2Fpython-fints.git Replace another ValueError with FinTSUnsupportedOperation --- diff --git a/fints/client.py b/fints/client.py index cf0e9aa..c285f7a 100644 --- a/fints/client.py +++ b/fints/client.py @@ -446,7 +446,7 @@ class FinTS3Client: version_map = dict((clazz.VERSION, clazz) for clazz in segment_classes) max_version = self.bpd.find_segment_highest_version(parameter_segment_name, version_map.keys()) if not max_version: - raise ValueError('No supported {} version found. I support {}, bank supports {}.'.format( + raise FinTSUnsupportedOperation('No supported {} version found. I support {}, bank supports {}.'.format( parameter_segment_name, tuple(version_map.keys()), tuple(v.header.version for v in self.bpd.find_segments(parameter_segment_name))