Closed Bug 1714376 Opened 3 years ago Closed 3 years ago

Replace a number of "exception.message" usages

Categories

(Firefox Build System :: Mach Core, defect)

defect

Tracking

(firefox91 fixed)

RESOLVED FIXED
91 Branch
Tracking Status
firefox91 --- fixed

People

(Reporter: hexagonrecursion, Assigned: hexagonrecursion)

References

Details

Attachments

(1 file)

This is a contribution toward fixing https://bugzilla.mozilla.org/show_bug.cgi?id=1713825

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.

  • This patch fixes many instances of exception.message, but there are still some remaining
  • ./mach lint --fix made a bunch of formatting changes to code I did not touch
Blocks: 1713825
Assignee: nobody → hexagonrecursion
Pushed by mhentges@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/68f73772f51e
Replace a number of "exception.message" usages. r=mhentges,jgraham
Flags: needinfo?(hexagonrecursion)

I was able to repro locally. Will push a fix soon. BTW can I haz level 1 commit access to push to try? Me being able to run the entire Firefox testsuite w/o making my own workstation unusable would save everyone time.

The test should pass now.

Flags: needinfo?(hexagonrecursion)

Thanks for the fix, though let's do a try run before landing this.
I'd recommend following this guide to get level 1 access - link me/NI me on the bug and I'll vouch for you 👍

Flags: needinfo?(hexagonrecursion)
Flags: needinfo?(hexagonrecursion)
Pushed by mhentges@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/167c07857eb9
Replace a number of "exception.message" usages. r=mhentges,jgraham
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/29282 for changes under testing/web-platform/tests
Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 91 Branch
Upstream PR merged by moz-wptsync-bot
Regressions: 1715553
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: