File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -154,12 +154,12 @@ def check_limit_exceeded(self):
154154 if isinstance (self ._data , dict ) and (
155155 "response" in self ._data and "limit_exceeded" in self ._data ["response" ] and self ._data ["response" ]["limit_exceeded" ] is True
156156 ):
157- limit_exceeded , reason = True , f"Limit Exceeded: { self ._data [' response' ][ ' message' ] } "
157+ limit_exceeded , reason = True , self ._data [" response" ][ " message" ]
158158 elif "response" in self ._data and "limit_exceeded" in self ._data :
159- limit_exceeded , reason = True , "Limit Exceeded"
159+ limit_exceeded = True
160160
161161 if limit_exceeded :
162- raise ServiceException (503 , reason )
162+ raise ServiceException (503 , f"Limit Exceeded { reason } " )
163163
164164 @property
165165 def status (self ):
You can’t perform that action at this time.
0 commit comments