mercurial/hgweb/hgwebdir_mod.py
changeset 5332 b0bfe087ad8a
parent 5289 ed6df6b1c29a
child 5336 24de027551c1
--- a/mercurial/hgweb/hgwebdir_mod.py	Mon Sep 24 19:00:11 2007 -0300
+++ b/mercurial/hgweb/hgwebdir_mod.py	Mon Sep 24 19:00:11 2007 -0300
@@ -139,8 +139,9 @@
                 u = ui.ui(parentui=parentui)
                 try:
                     u.readconfig(os.path.join(path, '.hg', 'hgrc'))
-                except IOError:
-                    pass
+                except Exception, e:
+                    u.warn(_('error reading %s/.hg/hgrc: %s\n' % (path, e)))
+                    continue
                 def get(section, name, default=None):
                     return u.config(section, name, default, untrusted=True)