Author: tlinnet Date: Fri Dec 6 09:57:13 2013 New Revision: 21811 URL: http://svn.gna.org/viewcvs/relax?rev=21811&view=rev Log: Issuing a warning instead of error when loading spins from sparky list where residue names are not present. Work in progress for Support Request #3044, (https://gna.org/support/index.php?3044) - Load spins from SPARKY list. Modified: trunk/lib/spectrum/sparky.py Modified: trunk/lib/spectrum/sparky.py URL: http://svn.gna.org/viewcvs/relax/trunk/lib/spectrum/sparky.py?rev=21811&r1=21810&r2=21811&view=diff ============================================================================== --- trunk/lib/spectrum/sparky.py (original) +++ trunk/lib/spectrum/sparky.py Fri Dec 6 09:57:13 2013 @@ -134,7 +134,8 @@ try: res_name = row1[-4] except: - raise RelaxError("Improperly formatted Sparky file, cannot process the assignment '%s' for residue name." % line[0]) + raise RelaxWarning("Improperly formatted Sparky file, cannot process the assignment '%s' for residue name.\nSetting residue name to None." % line[0]) + res_name = None # Chemical shifts. w1 = None