Skip to content

Commit

Permalink
source-braintree-native: concatenate search limit error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-Bair committed Dec 10, 2024
1 parent 1c80e71 commit 8f3805c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions source-braintree-native/source_braintree_native/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 8f3805c

Please sign in to comment.