diff mercurial/hgweb/hgwebdir_mod.py @ 5336:24de027551c1

Merge with crew-stable
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Mon, 24 Sep 2007 19:14:18 -0300
parents 05889b6b1468 b0bfe087ad8a
children 22713dce19f6 d2831a5d5947
line wrap: on
line diff
--- 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)