mercurial/formatter.py
changeset 45320 4aa484efc926
parent 45310 f3481e4fcc3a
child 46769 67a2ecea8bd9
--- a/mercurial/formatter.py	Wed Aug 05 22:13:51 2020 -0700
+++ b/mercurial/formatter.py	Thu Aug 06 09:50:10 2020 -0700
@@ -600,9 +600,9 @@
 
     # perhaps a stock style?
     if not os.path.split(tmpl)[0]:
-        (mapname, fp) = templater.open_template(
+        (mapname, fp) = templater.try_open_template(
             b'map-cmdline.' + tmpl
-        ) or templater.open_template(tmpl)
+        ) or templater.try_open_template(tmpl)
         if mapname:
             return mapfile_templatespec(topic, mapname, fp)