mercurial/hgweb.py
changeset 1073 7b35a980b982
parent 1063 58eefdfb8472
child 1076 01db658cc78a
--- a/mercurial/hgweb.py
+++ b/mercurial/hgweb.py
@@ -86,7 +86,7 @@ class templater:
                 if m:
                     self.map[m.group(1)] = os.path.join(self.base, m.group(2))
                 else:
-                    raise "unknown map entry '%s'"  % l
+                    raise LookupError("unknown map entry '%s'" % l)
 
     def __call__(self, t, **map):
         m = self.defaults.copy()