Skip to content

Commit

Permalink
fix f string (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
gkoch78 authored Feb 15, 2024
1 parent 70b7359 commit 75daf27
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion council/llm/llm_exception.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def __init__(self, code: int, error: str, llm_name: Optional[str]) -> None:
Returns:
None
"""
super().__init__(message="Wrong status code: {code}. Reason: {error}", llm_name=llm_name)
super().__init__(message=f"Wrong status code: {code}. Reason: {error}", llm_name=llm_name)
self._code = code
self._error = error

Expand Down
1 change: 1 addition & 0 deletions tests/unit/llm/test_llm_fallback.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,4 @@ def test_error(self):

self.assertEqual(e.exception.code, 403)
self.assertEqual(e.exception.__cause__.code, 401)
self.assertIn("Wrong status code: 403", str(e.exception))

0 comments on commit 75daf27

Please sign in to comment.