##// END OF EJS Templates
hgwebdir: ignore hgrc parse errors while building the index page...
Alexis S. L. Carvalho -
r5332:b0bfe087 default
parent child Browse files
Show More
@@ -139,8 +139,9 b' class hgwebdir(object):'
139 u = ui.ui(parentui=parentui)
139 u = ui.ui(parentui=parentui)
140 try:
140 try:
141 u.readconfig(os.path.join(path, '.hg', 'hgrc'))
141 u.readconfig(os.path.join(path, '.hg', 'hgrc'))
142 except IOError:
142 except Exception, e:
143 pass
143 u.warn(_('error reading %s/.hg/hgrc: %s\n' % (path, e)))
144 continue
144 def get(section, name, default=None):
145 def get(section, name, default=None):
145 return u.config(section, name, default, untrusted=True)
146 return u.config(section, name, default, untrusted=True)
146
147
General Comments 0
You need to be logged in to leave comments. Login now