ICU-8988 merge r31315 into v.12

X-SVN-Rev: 31475
This commit is contained in:
Steven R. Loomis 2012-02-21 19:57:38 +00:00
parent e0fdb2f39e
commit 0ac70e6c0c

View File

@ -44,7 +44,13 @@ class ReviewModule(Component):
# ITemplateProvider methods
def get_templates_dirs(self):
return [resource_filename(__name__, 'templates')]
try:
return [resource_filename(__name__, 'templates')]
except Exception, e:
self.log.warning('Could not get template dir: %s: %s' %
(type(e), e))
return ""
def get_htdocs_dirs(self):
return [('icucodetools', resource_filename(__name__, 'htdocs'))]