Author: bugman Date: Fri Sep 28 18:52:10 2012 New Revision: 17612 URL: http://svn.gna.org/viewcvs/relax?rev=17612&view=rev Log: Python 3 preparations - more exception handling updates for all Python 2.4+ versions. Modified: trunk/relax_io.py Modified: trunk/relax_io.py URL: http://svn.gna.org/viewcvs/relax/trunk/relax_io.py?rev=17612&r1=17611&r2=17612&view=diff ============================================================================== --- trunk/relax_io.py (original) +++ trunk/relax_io.py Fri Sep 28 18:52:10 2012 @@ -544,8 +544,9 @@ # Validate the sequence. try: generic_fns.sequence.validate_sequence(line, spin_id_col=spin_id_col, mol_name_col=mol_name_col, res_num_col=res_num_col, res_name_col=res_name_col, spin_num_col=spin_num_col, spin_name_col=spin_name_col, data_col=data_col, error_col=error_col) - except RelaxInvalidSeqError, msg: + except RelaxInvalidSeqError: # Extract the message string, without the RelaxError bit. + msg = sys.exc_info()[1] string = msg.__str__()[12:-1] # Give a warning.