Show More
@@ -30,6 +30,9 b' from . import (' | |||||
30 | util, |
|
30 | util, | |
31 | ) |
|
31 | ) | |
32 |
|
32 | |||
|
33 | class ResourceUnavailable(error.Abort): | |||
|
34 | pass | |||
|
35 | ||||
33 | class TemplateNotFound(error.Abort): |
|
36 | class TemplateNotFound(error.Abort): | |
34 | pass |
|
37 | pass | |
35 |
|
38 | |||
@@ -1377,7 +1380,8 b' class engine(object):' | |||||
1377 | if v is None: |
|
1380 | if v is None: | |
1378 | v = self._resources.get(key) |
|
1381 | v = self._resources.get(key) | |
1379 | if v is None: |
|
1382 | if v is None: | |
1380 |
raise |
|
1383 | raise ResourceUnavailable(_('template resource not available: %s') | |
|
1384 | % key) | |||
1381 | return v |
|
1385 | return v | |
1382 |
|
1386 | |||
1383 | def _load(self, t): |
|
1387 | def _load(self, t): |
General Comments 0
You need to be logged in to leave comments.
Login now