[PATCH] use python 2.x exception syntax

Mike McLean mikem at redhat.com
Fri Nov 13 03:48:01 UTC 2009


Signed-off-by: Mike McLean <mikem at redhat.com>
---
 pykickstart/parser.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/pykickstart/parser.py b/pykickstart/parser.py
index 160874c..21525f1 100644
--- a/pykickstart/parser.py
+++ b/pykickstart/parser.py
@@ -136,7 +136,7 @@ def preprocessKickstart (file):
     """
     try:
         fh = urlopen(file)
-    except grabber.URLGrabError as e:
+    except grabber.URLGrabError, e:
         raise IOError, formatErrorMsg(0, msg=_("Unable to open input kickstart file: %s") % e.strerror)
 
     rc = _preprocessStateMachine (lambda: fh.readline())
@@ -764,7 +764,7 @@ class KickstartParser:
 
         try:
             fh = urlopen(f)
-        except grabber.URLGrabError as e:
+        except grabber.URLGrabError, e:
             raise IOError, formatErrorMsg(0, msg=_("Unable to open input kickstart file: %s") % e.strerror)
 
         self._stateMachine (lambda: fh.readline())
-- 
1.6.2.5




More information about the Kickstart-list mailing list