mailr6350 - /branches/relax_data_rearrange/prompt/relax_data.py


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

Header


Content

Posted by edward on June 08, 2008 - 15:54:
Author: bugman
Date: Sun Jun  8 15:17:17 2008
New Revision: 6350

URL: http://svn.gna.org/viewcvs/relax?rev=6350&view=rev
Log:
Fixed the testing of the file arg in the relax_data.write() user function 
interface.


Modified:
    branches/relax_data_rearrange/prompt/relax_data.py

Modified: branches/relax_data_rearrange/prompt/relax_data.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/relax_data_rearrange/prompt/relax_data.py?rev=6350&r1=6349&r2=6350&view=diff
==============================================================================
--- branches/relax_data_rearrange/prompt/relax_data.py (original)
+++ branches/relax_data_rearrange/prompt/relax_data.py Sun Jun  8 15:17:17 
2008
@@ -409,8 +409,8 @@
             raise RelaxStrError, ('frequency label', frq_label)
 
         # File.
-        if file != None and type(file) != str:
-            raise RelaxNoneStrError, ('file name', file)
+        if type(file) != str:
+            raise RelaxStrError, ('file name', file)
 
         # Directory.
         if dir != None and type(dir) != str:




Related Messages


Powered by MHonArc, Updated Sun Jun 08 17:00:24 2008