Mercurial > genshi > genshi-test
comparison markup/template.py @ 175:f0cdfcdaa092
Raise error when template search path is empty.
author | cmlenz |
---|---|
date | Sun, 20 Aug 2006 12:08:50 +0000 |
parents | ae5d2f4a378a |
children | 7efcbf6b1cf2 |
comparison
equal
deleted
inserted
replaced
174:19c669eadc2b | 175:f0cdfcdaa092 |
---|---|
1113 self._cache[filename] = tmpl | 1113 self._cache[filename] = tmpl |
1114 self._mtime[filename] = os.path.getmtime(filepath) | 1114 self._mtime[filename] = os.path.getmtime(filepath) |
1115 return tmpl | 1115 return tmpl |
1116 except IOError: | 1116 except IOError: |
1117 continue | 1117 continue |
1118 else: | |
1119 raise TemplateError('Search path for templates not configured') | |
1120 | |
1118 raise TemplateNotFound(filename, self.search_path) | 1121 raise TemplateNotFound(filename, self.search_path) |