Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
gkorland and coderabbitai[bot] authored Dec 21, 2023
1 parent d813deb commit 3c5d5a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def _restore(e):

except openai.error.RateLimitError as e:
# request limit exceeded or something.
logging.warning(e)
logging.warning("%s", e)
return jsonify({"error": "rate limitation"}), 429
except Exception as e:
# general exception handling
Expand Down

0 comments on commit 3c5d5a0

Please sign in to comment.