Improve exception handling.
authorKurt B. Kaiser <kbk@shore.net>
Thu, 2 Jan 2003 17:09:34 +0000 (17:09 +0000)
committerKurt B. Kaiser <kbk@shore.net>
Thu, 2 Jan 2003 17:09:34 +0000 (17:09 +0000)
Lib/idlelib/idle
Lib/idlelib/idle.py
Lib/idlelib/idle.pyw

index 0d4e85fdf0944399e430830ec9c0228fc06b7689..c8a8feaf6ce82a9979de71b886ecc0afe95e37df 100755 (executable)
@@ -2,8 +2,9 @@
 
 try:
     import idlelib.PyShell
-    idlelib.PyShell.main()
 except ImportError:
     # IDLE is not installed, but maybe PyShell is on sys.path:
     import PyShell
     PyShell.main()
+else:
+    idlelib.PyShell.main()
index 0d4e85fdf0944399e430830ec9c0228fc06b7689..c8a8feaf6ce82a9979de71b886ecc0afe95e37df 100644 (file)
@@ -2,8 +2,9 @@
 
 try:
     import idlelib.PyShell
-    idlelib.PyShell.main()
 except ImportError:
     # IDLE is not installed, but maybe PyShell is on sys.path:
     import PyShell
     PyShell.main()
+else:
+    idlelib.PyShell.main()
index 0d4e85fdf0944399e430830ec9c0228fc06b7689..c8a8feaf6ce82a9979de71b886ecc0afe95e37df 100644 (file)
@@ -2,8 +2,9 @@
 
 try:
     import idlelib.PyShell
-    idlelib.PyShell.main()
 except ImportError:
     # IDLE is not installed, but maybe PyShell is on sys.path:
     import PyShell
     PyShell.main()
+else:
+    idlelib.PyShell.main()