Page MenuHomePhabricator

templater: replace Py3-only exception types by super-types available in Py2
ClosedPublic

Authored by martinvonz on Aug 6 2020, 1:27 AM.

Details

Summary

As noted by @indygreg, test-check-pyflakes.t started failing on Py2
after my recent D8894, because that introduced catching of the
Py3-only types ModuleNotFoundError and FileNotFoundError. Let's
switch to less precise types that are also available in Py2.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.