mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
fix typo for rate limit error
This commit is contained in:
parent
27f2ef5e83
commit
8b27a5173b
1 changed files with 1 additions and 1 deletions
|
|
@ -52,7 +52,7 @@ class EpcClientService:
|
||||||
if resp.status_code == 404:
|
if resp.status_code == 404:
|
||||||
raise EpcNotFoundError(cert_num)
|
raise EpcNotFoundError(cert_num)
|
||||||
if resp.status_code == 429:
|
if resp.status_code == 429:
|
||||||
raise EpcRateLimpolars vs pandas code examplepolars vs pandas code exampleitError("Rate limited by EPC API")
|
raise EpcRateLimitError("Rate limited by EPC API")
|
||||||
if not resp.is_success:
|
if not resp.is_success:
|
||||||
raise EpcApiError(f"EPC API error {resp.status_code}: {resp.text}")
|
raise EpcApiError(f"EPC API error {resp.status_code}: {resp.text}")
|
||||||
return resp.json()["data"]
|
return resp.json()["data"]
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue