##// END OF EJS Templates
py3: move between bytes and unicode when re-raising IOError...
Yuya Nishihara -
r36518:43e10802 default
parent child Browse files
Show More
@@ -1537,8 +1537,9 b' class templater(object):'
1537 raise TemplateNotFound(_('"%s" not in template map') %
1537 raise TemplateNotFound(_('"%s" not in template map') %
1538 inst.args[0])
1538 inst.args[0])
1539 except IOError as inst:
1539 except IOError as inst:
1540 raise IOError(inst.args[0], _('template file %s: %s') %
1540 reason = (_('template file %s: %s')
1541 (self.map[t][1], inst.args[1]))
1541 % (self.map[t][1], util.forcebytestr(inst.args[1])))
1542 raise IOError(inst.args[0], encoding.strfromlocal(reason))
1542 return self.cache[t]
1543 return self.cache[t]
1543
1544
1544 def render(self, mapping):
1545 def render(self, mapping):
General Comments 0
You need to be logged in to leave comments. Login now