Author: bugman Date: Thu Jun 7 16:53:21 2012 New Revision: 16732 URL: http://svn.gna.org/viewcvs/relax?rev=16732&view=rev Log: Added a check to the bmrb.write user function to see if the file name has been supplied. This results in a nicer message for the GUI. Modified: branches/uf_redesign/generic_fns/bmrb.py Modified: branches/uf_redesign/generic_fns/bmrb.py URL: http://svn.gna.org/viewcvs/relax/branches/uf_redesign/generic_fns/bmrb.py?rev=16732&r1=16731&r2=16732&view=diff ============================================================================== --- branches/uf_redesign/generic_fns/bmrb.py (original) +++ branches/uf_redesign/generic_fns/bmrb.py Thu Jun 7 16:53:21 2012 @@ -1,6 +1,6 @@ ############################################################################### # # -# Copyright (C) 2008-2011 Edward d'Auvergne # +# Copyright (C) 2008-2012 Edward d'Auvergne # # # # This file is part of the program relax. # # # @@ -241,6 +241,10 @@ if not ds.current_pipe: raise RelaxNoPipeError + # Check the file name. + if file == None: + raise RelaxError("The file name must be specified.") + # The special data pipe name directory. if dir == 'pipe_name': dir = ds.current_pipe