From 8f3805c046b40fdcc76f339f6f011af286f16856 Mon Sep 17 00:00:00 2001 From: Alex Bair Date: Tue, 10 Dec 2024 10:52:18 -0500 Subject: [PATCH] source-braintree-native: concatenate search limit error message --- source-braintree-native/source_braintree_native/api.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/source-braintree-native/source_braintree_native/api.py b/source-braintree-native/source_braintree_native/api.py index 502d9ec45..a7b08acd5 100644 --- a/source-braintree-native/source_braintree_native/api.py +++ b/source-braintree-native/source_braintree_native/api.py @@ -31,9 +31,11 @@ def _search_limit_error_message(count: int, name: str) -> str: - msg = f"{count} {name} returned in a single search which is " - f"greater than or equal to Braintree's documented maximum for a single {name} search. " - "Reduce the window size and backfill this stream." + msg = ( + f"{count} {name} returned in a single search which is " + f"greater than or equal to Braintree's documented maximum for a single {name} search. " + "Reduce the window size and backfill this stream." + ) return msg @@ -73,7 +75,7 @@ def _braintree_object_to_dict(braintree_object): data.pop('_setattrs', None) return data - +# TODO(bair): Refactor snapshot_ and fetch_ functions to make asynchronous API requests instead of synchronous requests. async def snapshot_resources( braintree_gateway: BraintreeGateway, gateway_property: str,