(cls, message: str)
| 977 | |
| 978 | @classmethod |
| 979 | def isSecondaryRateLimitError(cls, message: str) -> bool: |
| 980 | if not message: |
| 981 | return False |
| 982 | |
| 983 | message = message.lower() |
| 984 | return ( |
| 985 | message.startswith("you have exceeded a secondary rate limit") |
| 986 | or message.endswith("please retry your request again later.") |
| 987 | or message.endswith("please wait a few minutes before you try again.") |
| 988 | ) |
| 989 | |
| 990 | def __structuredFromJson(self, data: str) -> Any: |
| 991 | if len(data) == 0: |
no outgoing calls
no test coverage detected