commit cb7d8ba09ab21df505b0d1fc08e6f8e292b0a26b
parent bfd038a11385ab8e0afe5e048aecf0e4b00ab3f4
Author: Alex Hochheiden <ahochheiden@mozilla.com>
Date: Wed, 10 Dec 2025 06:03:25 +0000
Bug 2003412 - Fix PLW0711 warnings: Use tuple for multiple exception types r=emilio
https://docs.astral.sh/ruff/rules/binary-op-exception/
Differential Revision: https://phabricator.services.mozilla.com/D274697
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/toolkit/components/extensions/webidl-api/InspectJSONSchema.py b/toolkit/components/extensions/webidl-api/InspectJSONSchema.py
@@ -12,7 +12,7 @@ try:
# try to access an existing property to please flake8 linting and as an
# additional sanity check.
buildconfig.topsrcdir
-except ModuleNotFoundError or AttributeError:
+except (ModuleNotFoundError, AttributeError):
print(
"This script should be executed using `mach python %s`" % __file__,
file=sys.stderr,