mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 03:04:13 +00:00
refactor: replace .error() with .exception() logging for better debugging on sentry
This commit is contained in:
parent
1510daba4f
commit
61f4b71ef7
35 changed files with 242 additions and 253 deletions
|
@ -806,7 +806,8 @@ def test_exception_mapping(provider):
|
|||
except expected_exception:
|
||||
continue
|
||||
except Exception as e:
|
||||
response = "{}\n{}".format(str(e), traceback.format_exc())
|
||||
traceback.print_exc()
|
||||
response = "{}".format(str(e))
|
||||
pytest.fail(
|
||||
"Did not raise expected exception. Expected={}, Return={},".format(
|
||||
expected_exception, response
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue