# HG changeset patch # User Thomas Arendsen Hein # Date 2006-12-09 13:00:36 # Node ID 973c6e6ca7a1711c80a57591a89d71465a3fbc3e # Parent 3820385fb113d1fee9caae86ab9975be9cc07630 Removed unneeded OSError exception handler. OSErrors will already be handled in the outside try/except. diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -2991,11 +2991,7 @@ def dispatch(args): try: if options['cwd']: - try: - os.chdir(options['cwd']) - except OSError, inst: - raise util.Abort('%s: %s' % - (options['cwd'], inst.strerror)) + os.chdir(options['cwd']) u.updateopts(options["verbose"], options["debug"], options["quiet"], not options["noninteractive"], options["traceback"],