mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-02 20:22:10 +00:00
The test_keys_delete_error_handling test was failing with: - ConnectionError when the mock wasn't properly applied - The test was checking str(result.exception) without first verifying exception exists This fix adds an explicit check that result.exception is not None before attempting to convert it to string, preventing potential AttributeError and making the test more robust.