Admin/website/build/pypager.py
changeset 16584 991ecdd985d9
parent 16582 941f62536158
child 16586 9b1b50514b5e
--- a/Admin/website/build/pypager.py	Tue Jun 28 12:25:19 2005 +0200
+++ b/Admin/website/build/pypager.py	Tue Jun 28 12:32:38 2005 +0200
@@ -170,6 +170,8 @@
         thisloc = self._pc.relLocOfThis()
         if thisloc.startswith(stripprefix):
             thisloc = thisloc[len(stripprefix):]
+        else:
+            raise Exception("Incompatible mirror (prefix to strip not found): %s" % title.encode("latin-1"))
         handler.startElement(u"a", {u"href": posixpath.join(prefix, thisloc)})
         handler.characters(title)
         handler.endElement(u"a")