ICU-8988 merge from unicode.org - robustness

X-SVN-Rev: 31315
This commit is contained in:
Steven R. Loomis 2012-02-03 01:24:09 +00:00
parent 5b1d31d013
commit 7f9aa7a129

View File

@ -1,4 +1,4 @@
# Copyright (C) 2007-2010 International Business Machines Corporation and Others. All Rights Reserved.
# Copyright (C) 2007-2012 International Business Machines Corporation and Others. All Rights Reserved.
# Review module.
# TODO: refactor ticket manipulation items into ticketmgr.
@ -38,7 +38,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'))]