Bug report
Bug description:
Bug Description
In Lib/email/_header_value_parser.py (line 2540), get_parameter() uses a bare except: which silently catches all exceptions.
It should be narrowed to except errors.HeaderParseError: to match other call sites in the same file.
cc @hugovk @corona10
CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux
Linked PRs
Bug report
Bug description:
Bug Description
In
Lib/email/_header_value_parser.py(line 2540),get_parameter()uses a bareexcept:which silently catches all exceptions.It should be narrowed to
except errors.HeaderParseError:to match other call sites in the same file.cc @hugovk @corona10
CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux
Linked PRs