Author: bugman Date: Mon Jun 17 15:25:36 2013 New Revision: 20179 URL: http://svn.gna.org/viewcvs/relax?rev=20179&view=rev Log: Merged revisions 20178 via svnmerge from svn+ssh://bugman@xxxxxxxxxxx/svn/relax/trunk ........ r20178 | bugman | 2013-06-17 15:23:40 +0200 (Mon, 17 Jun 2013) | 5 lines The lib.io.open_write_file() function now catches file names of None and raises a RelaxError. This is useful for the GUI if the user forgets to select a file name. ........ Modified: branches/relax_disp/ (props changed) branches/relax_disp/lib/io.py Propchange: branches/relax_disp/ ------------------------------------------------------------------------------ --- svnmerge-integrated (original) +++ svnmerge-integrated Mon Jun 17 15:25:36 2013 @@ -1,1 +1,1 @@ -/trunk:1-20176 +/trunk:1-20178 Modified: branches/relax_disp/lib/io.py URL: http://svn.gna.org/viewcvs/relax/branches/relax_disp/lib/io.py?rev=20179&r1=20178&r2=20179&view=diff ============================================================================== --- branches/relax_disp/lib/io.py (original) +++ branches/relax_disp/lib/io.py Mon Jun 17 15:25:36 2013 @@ -397,6 +397,10 @@ @rtype: writable file object (if return_path, then a tuple of the writable file and the full file path) """ + + # No file name? + if file_name == None: + raise RelaxError("The name of the file must be supplied.") # A file descriptor object. if is_filetype(file_name):