Skip to content

Commit

Permalink
更新:429限制错误提示
Browse files Browse the repository at this point in the history
  • Loading branch information
Samge0 committed Aug 22, 2023
1 parent 4ffe32a commit 5ca1879
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions utils/u_api_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ def get_notion_result(request: NotionRequest) -> (bool, str):
if notion_ai.is_un_authorized_error(result):
return False, f"【NotionAI的认证失败/认证已过期】{result}"

if notion_ai.is_429_error(result):
return False, f"【429请求频繁限制】{result}"

return True, result


Expand Down

0 comments on commit 5ca1879

Please sign in to comment.