Skip to content
Snippets Groups Projects
Commit c24215aa7e69 authored by Brodie Rao's avatar Brodie Rao
Browse files

dispatch: remove superfluous try/except when reading local ui config

ui.readconfig() already handles IOError in this case.
parent 45ef87f41f98
No related branches found
No related tags found
No related merge requests found
......@@ -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])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment