mailr17600 - /trunk/relax.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on September 28, 2012 - 16:58:
Author: bugman
Date: Fri Sep 28 16:58:29 2012
New Revision: 17600

URL: http://svn.gna.org/viewcvs/relax?rev=17600&view=rev
Log:
Python 3 preparations - exception handling fix to be Python 2.4+ compatible.


Modified:
    trunk/relax.py

Modified: trunk/relax.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/relax.py?rev=17600&r1=17599&r2=17600&view=diff
==============================================================================
--- trunk/relax.py (original)
+++ trunk/relax.py Fri Sep 28 16:58:29 2012
@@ -469,7 +469,8 @@
         # Raise a clean error.
         try:
             raise relax_errors.RelaxError(message)
-        except relax_errors.AllRelaxErrors, instance:
+        except relax_errors.AllRelaxErrors:
+            instance = sys.exc_info()[1]
             sys.stderr.write(instance.__str__())
 
         # Exit.




Related Messages


Powered by MHonArc, Updated Fri Sep 28 17:20:02 2012