mercurial/hgweb/hgwebdir_mod.py
changeset 5336 24de027551c1
parent 5290 05889b6b1468
parent 5332 b0bfe087ad8a
child 5561 22713dce19f6
child 5584 d2831a5d5947
--- a/mercurial/hgweb/hgwebdir_mod.py	Mon Sep 24 12:42:25 2007 -0500
+++ b/mercurial/hgweb/hgwebdir_mod.py	Mon Sep 24 19:14:18 2007 -0300
@@ -146,8 +146,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)