[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH] use python 2.x exception syntax



Signed-off-by: Mike McLean <mikem 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]