[Updated] D8902: templater: replace Py3-only exception types by super-types available in Py2

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Fri Aug 7 00:34:13 UTC 2020


Closed by commit rHG6e6fe826ba69: templater: replace Py3-only exception types by super-types available in Py2 (authored by martinvonz).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D8902?vs=22300&id=22318

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D8902/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D8902

AFFECTED FILES
  mercurial/templater.py

CHANGE DETAILS

diff --git a/mercurial/templater.py b/mercurial/templater.py
--- a/mercurial/templater.py
+++ b/mercurial/templater.py
@@ -1107,5 +1107,5 @@
                 name,
                 resourceutil.open_resource(package_name, name_parts[-1]),
             )
-        except (ModuleNotFoundError, FileNotFoundError):
+        except (ImportError, OSError):
             return None, None



To: martinvonz, #hg-reviewers, indygreg
Cc: indygreg, mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20200807/9b2564b4/attachment-0002.html>


More information about the Mercurial-patches mailing list