Closed
Bug 1713825
Opened 3 years ago
Closed 3 years ago
Update invalid "exception.message" usages
Categories
(Firefox Build System :: Mach Core, defect, P3)
Firefox Build System
Mach Core
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: mhentges, Unassigned)
References
Details
In PEP 352, exception.message
was deprecated (now, you can get the string from of an exception by simply doing str(exception)
. As of Python 3.0, exception.message
was dropped, and attempting to access it causes an error.
Thanks to Ahal for pointing out that we have a lot of code that still attempts to use exception.message
.
Comment 1•3 years ago
|
||
vendored 3rd party code:
- pyrsistent used to use exception.message until this PR: https://github.com/tobgu/pyrsistent/pull/226
- click is still using exception.message: https://github.com/pallets/click/pull/1946
- there might be more
Reporter | ||
Updated•3 years ago
|
Priority: -- → P3
Reporter | ||
Comment 2•3 years ago
|
||
The remaining usages are all in 3rd-party code. Thanks Andrey!
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•