Catch bug #3, the absence of user function argument
validation in the GUI.
Without argument validation, the structure.read_pdb user function
would fail with the error:
relax> pipe.create(pipe_name='validation_test', pipe_type='mf', bundle=None)
relax> structure.read_pdb(file=None, dir=None, read_mol=None, set_mol_name=None, read_model=None, set_model_num=None, alt_loc=None, verbosity=1, merge=False)
Traceback (most recent call last):
File "/data/relax/relax/gui/interpreter.py", line 306, in run
fn(*args, **kwds)
File "/data/relax/relax/pipe_control/structure/main.py", line 1277, in read_pdb
if not access(file_path, F_OK):
TypeError: coercing to Unicode: need string or buffer, NoneType found
However with validation, a RelaxStrFileError error is raised. This
is caught by the GUI, presenting a pop up window for the error, printing
out the error text, but not raising the error. Hence an error cannot be
caught.
|