Commit b730eec
committed
fix: narrow exception in Content-Length header lookup from Exception to AttributeError
Bare 'except Exception' would swallow MemoryError, RecursionError,
etc. The only realistic failure from getheader() is AttributeError.1 parent 5e2f9bc commit b730eec
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
429 | 429 | | |
430 | 430 | | |
431 | 431 | | |
432 | | - | |
| 432 | + | |
433 | 433 | | |
434 | 434 | | |
435 | 435 | | |
| |||
0 commit comments