Author: bugman Date: Mon Jun 4 11:21:40 2012 New Revision: 16620 URL: http://svn.gna.org/viewcvs/relax?rev=16620&view=rev Log: Fix for relax_io.write_spin_data() for when there is no data to write out. This function will now do nothing. The problem was introduced in the last commit. Modified: branches/uf_redesign/relax_io.py Modified: branches/uf_redesign/relax_io.py URL: http://svn.gna.org/viewcvs/relax/branches/uf_redesign/relax_io.py?rev=16620&r1=16619&r2=16620&view=diff ============================================================================== --- branches/uf_redesign/relax_io.py (original) +++ branches/uf_redesign/relax_io.py Mon Jun 4 11:21:40 2012 @@ -920,6 +920,10 @@ else: file_data[-1].append(repr(error[spin_index])) + # No data to write, so do nothing! + if file_data == [[]]: + return + # Open the file for writing. file = open_write_file(file_name=file, dir=dir, force=force)