mercurial/logcmdutil.py
changeset 45320 4aa484efc926
parent 45310 f3481e4fcc3a
child 45458 4532e7ebde4d
--- a/mercurial/logcmdutil.py	Wed Aug 05 22:13:51 2020 -0700
+++ b/mercurial/logcmdutil.py	Thu Aug 06 09:50:10 2020 -0700
@@ -628,9 +628,9 @@
         mapfile = style
         fp = None
         if not os.path.split(mapfile)[0]:
-            (mapname, fp) = templater.open_template(
+            (mapname, fp) = templater.try_open_template(
                 b'map-cmdline.' + mapfile
-            ) or templater.open_template(mapfile)
+            ) or templater.try_open_template(mapfile)
             if mapname:
                 mapfile = mapname
         return formatter.mapfile_templatespec(b'changeset', mapfile, fp)