Author: bugman Date: Thu May 3 20:05:09 2012 New Revision: 15919 URL: http://svn.gna.org/viewcvs/relax?rev=15919&view=rev Log: Shifted a check from the pipe.create front end to the back end. Tests do not belong in the front end! And this is not compatible with the new user function design. Modified: branches/uf_redesign/generic_fns/pipes.py Modified: branches/uf_redesign/generic_fns/pipes.py URL: http://svn.gna.org/viewcvs/relax/branches/uf_redesign/generic_fns/pipes.py?rev=15919&r1=15918&r2=15919&view=diff ============================================================================== --- branches/uf_redesign/generic_fns/pipes.py (original) +++ branches/uf_redesign/generic_fns/pipes.py Thu May 3 20:05:09 2012 @@ -68,6 +68,10 @@ if pipe_to in list(ds.keys()): raise RelaxPipeError(pipe_to) + # Both pipe arguments cannot be None. + if pipe_from == None and pipe_to == None: + raise RelaxError("The pipe_from and pipe_to arguments cannot both be set to None.") + # Acquire the pipe lock (data modifying function), and make sure it is finally released. status.pipe_lock.acquire(sys._getframe().f_code.co_name) try: