diff markup/template.py @ 175:7f96149f28d5 trunk

Raise error when template search path is empty.
author cmlenz
date Sun, 20 Aug 2006 12:08:50 +0000
parents 128005041637
children 00212b14903d
line wrap: on
line diff
--- a/markup/template.py
+++ b/markup/template.py
@@ -1115,4 +1115,7 @@
                 return tmpl
             except IOError:
                 continue
+        else:
+            raise TemplateError('Search path for templates not configured')
+
         raise TemplateNotFound(filename, self.search_path)
Copyright (C) 2012-2017 Edgewall Software