comparison 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
comparison
equal deleted inserted replaced
174:a395c11cbced 175:7f96149f28d5
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)
Copyright (C) 2012-2017 Edgewall Software