mirror of
https://github.com/FlipsideCrypto/sdk.git
synced 2026-02-06 10:46:43 +00:00
Fix wrong unit in error message
This commit is contained in:
parent
73e52bf825
commit
901101965e
@ -18,11 +18,11 @@ class QueryRunTimeoutError(BaseError):
|
||||
Base class for all QueryRunTimeoutError errors.
|
||||
"""
|
||||
|
||||
def __init__(self, timeoutMinutes: Union[int, float, None] = None):
|
||||
if timeoutMinutes is None:
|
||||
def __init__(self, timeoutSeconds: Union[int, float, None] = None):
|
||||
if timeoutSeconds is None:
|
||||
self.message = f"QUERY_RUN_TIMEOUT_ERROR: your query has timed out."
|
||||
else:
|
||||
self.message = f"QUERY_RUN_TIMEOUT_ERROR: your query has timed out after {timeoutMinutes} minutes."
|
||||
self.message = f"QUERY_RUN_TIMEOUT_ERROR: your query has timed out after {timeoutSeconds} seconds."
|
||||
super().__init__(self.message)
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user