Skip to content

Commit

Permalink
add f string prefix so that vars are interpolated
Browse files Browse the repository at this point in the history
  • Loading branch information
macpd committed Jul 30, 2024
1 parent 4461d29 commit 525d1ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tiktok_research_api_helper/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -575,8 +575,8 @@ def _post(self, request: TikTokVideoRequest, url: str) -> rq.Response | None:

if response.status_code == 429:
msg = (
f"Response indicates rate limit exceeded: {response!r}. num_api_requests_sent: "
"{self.num_api_requests_sent}"
f"Response indicates rate limit exceeded: {response!r}. "
f"num_api_requests_sent: {self.num_api_requests_sent}"
)
raise ApiRateLimitError(msg)

Expand Down

0 comments on commit 525d1ea

Please sign in to comment.