# HG changeset patch
# User Brodie Rao <brodie@bitheap.org>
# Date 1286220398 18000
#      Mon Oct 04 14:26:38 2010 -0500
# Node ID c24215aa7e698083b94c222a6d4e1ba87dea843f
# Parent  45ef87f41f989b09a9114bfb1356c16508c1fccc
dispatch: remove superfluous try/except when reading local ui config

ui.readconfig() already handles IOError in this case.

diff --git a/mercurial/dispatch.py b/mercurial/dispatch.py
--- a/mercurial/dispatch.py
+++ b/mercurial/dispatch.py
@@ -419,11 +419,8 @@
     if not path:
         lui = ui
     else:
-        try:
-            lui = ui.copy()
-            lui.readconfig(os.path.join(path, ".hg", "hgrc"))
-        except IOError:
-            pass
+        lui = ui.copy()
+        lui.readconfig(os.path.join(path, ".hg", "hgrc"))
 
     if rpath:
         path = lui.expandpath(rpath[-1])