mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-10 03:28:53 +00:00
A handler can report on the path that reaches the `raise` and still swallow on
one that leaves before it:
except Exception as e:
if "try pulling it first" in str(e):
return
pytest.fail(f"Error occurred: {e}")
The scan now stops at the first statement that can leave the handler without
reporting, so a `return`, `break` or `continue` above the reporting statement
makes the handler swallowing rather than clean. A `return` inside a nested
`def` is not one of those, since it leaves the nested body, so the walk stops
at a nested scope.
Two more sites, 42 to 44.
29 lines
318 B
JSON
29 lines
318 B
JSON
{
|
|
"TQ001": {
|
|
"limit": 744
|
|
},
|
|
"TQ002": {
|
|
"limit": 742
|
|
},
|
|
"TQ003": {
|
|
"limit": 62
|
|
},
|
|
"TQ004": {
|
|
"limit": 469
|
|
},
|
|
"TQ005": {
|
|
"limit": 2405
|
|
},
|
|
"TQ006": {
|
|
"limit": 34
|
|
},
|
|
"TQ007": {
|
|
"limit": 117
|
|
},
|
|
"TQ008": {
|
|
"limit": 11139
|
|
},
|
|
"TQ009": {
|
|
"limit": 44
|
|
}
|
|
}
|