Author: bugman Date: Fri Nov 16 14:44:53 2012 New Revision: 17997 URL: http://svn.gna.org/viewcvs/relax?rev=17997&view=rev Log: Fix for the relax_io.write_data() function - it can now handle no data being sent in. Modified: trunk/relax_io.py Modified: trunk/relax_io.py URL: http://svn.gna.org/viewcvs/relax/trunk/relax_io.py?rev=17997&r1=17996&r2=17997&view=diff ============================================================================== --- trunk/relax_io.py (original) +++ trunk/relax_io.py Fri Nov 16 14:44:53 2012 @@ -807,6 +807,10 @@ @type sep: str or None """ + # No data to print out. + if data in [None, []]: + return + # The number of rows and columns. num_rows = len(data) num_cols = len(data[0])