changeset 3840:973c6e6ca7a1

Removed unneeded OSError exception handler. OSErrors will already be handled in the outside try/except.
author Thomas Arendsen Hein <thomas@intevation.de>
date Sat, 09 Dec 2006 14:00:36 +0100
parents 3820385fb113
children aaeb7f5d1052
files mercurial/commands.py
diffstat 1 files changed, 1 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py	Sat Dec 09 11:16:27 2006 +0100
+++ b/mercurial/commands.py	Sat Dec 09 14:00:36 2006 +0100
@@ -2991,11 +2991,7 @@
 
         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"],