Show More
@@ -214,6 +214,8 b' class templater(object):' | |||
|
214 | 214 | if not t in self.cache: |
|
215 | 215 | try: |
|
216 | 216 | self.cache[t] = open(self.map[t][1]).read() |
|
217 | except KeyError, inst: | |
|
218 | raise util.Abort(_('"%s" not in template map') % inst.args[0]) | |
|
217 | 219 | except IOError, inst: |
|
218 | 220 | raise IOError(inst.args[0], _('template file %s: %s') % |
|
219 | 221 | (self.map[t][1], inst.args[1])) |
General Comments 0
You need to be logged in to leave comments.
Login now