Skip to content

Commit

Permalink
chore: add debugging detail to BatchResponseSortError (#221)
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler authored Aug 30, 2024
1 parent a9de526 commit 57110ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dank_mids/_exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class BatchResponseSortError(Exception):
def __init__(self, controller: "DankMiddlewareController", calls: List["RPCRequest"], response: List["RawResponse"]) -> None:
self.calls = calls
self.results = [raw.decode() for raw in response]
super().__init__(controller.endpoint, controller.client_version, [call.uid for call in calls], self.results)
super().__init__(f"This will not mess up your run but will make things needlessly slow. Please show this to Bob. endpoint={controller.endpoint} client_version={controller.client_version} calls={[call.uid for call in calls]} response={self.results}")

class ChainstackRateLimited(BadResponse):
"""
Expand Down

0 comments on commit 57110ca

Please sign in to comment.