diff mercurial/hgweb.py @ 1073:7b35a980b982

[PATCH] raise exceptions with Exception subclasses Fixed the patch. Using Exception subclasses. (tweaked by mpm)
author Bart Trojanowski <bart@jukie.net>
date Fri, 26 Aug 2005 19:08:25 -0700
parents 58eefdfb8472
children 01db658cc78a
line wrap: on
line diff
--- a/mercurial/hgweb.py	Fri Aug 26 16:49:23 2005 -0700
+++ b/mercurial/hgweb.py	Fri Aug 26 19:08:25 2005 -0700
@@ -86,7 +86,7 @@
                 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()