Author: bugman Date: Fri Oct 24 13:56:38 2008 New Revision: 7962 URL: http://svn.gna.org/viewcvs/relax?rev=7962&view=rev Log: Added a check for empty PDB files in the internal structural object. Modified: 1.3/generic_fns/structure/internal.py Modified: 1.3/generic_fns/structure/internal.py URL: http://svn.gna.org/viewcvs/relax/1.3/generic_fns/structure/internal.py?rev=7962&r1=7961&r2=7962&view=diff ============================================================================== --- 1.3/generic_fns/structure/internal.py (original) +++ 1.3/generic_fns/structure/internal.py Fri Oct 24 13:56:38 2008 @@ -321,6 +321,10 @@ file = open_read_file(file_path) lines = file.readlines() file.close() + + # Check for empty files. + if lines == []: + raise RelaxError, "The PDB file is empty." # Init. model = None