Skip to content

Commit

Permalink
remove newline escape char in exception message.
Browse files Browse the repository at this point in the history
  • Loading branch information
macpd committed Jul 30, 2024
1 parent 45212ff commit 4461d29
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}.\n"
"num_api_requests_sent: {self.num_api_requests_sent}"
f"Response indicates rate limit exceeded: {response!r}. num_api_requests_sent: "
"{self.num_api_requests_sent}"
)
raise ApiRateLimitError(msg)

Expand Down

0 comments on commit 4461d29

Please sign in to comment.