Removed unneeded OSError exception handler.
authorThomas Arendsen Hein <thomas@intevation.de>
Sat, 09 Dec 2006 14:00:36 +0100
changeset 3840 973c6e6ca7a1
parent 3839 3820385fb113
child 3841 aaeb7f5d1052
Removed unneeded OSError exception handler. OSErrors will already be handled in the outside try/except.
mercurial/commands.py
--- 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"],