mailr27717 - /trunk/pipe_control/structure/main.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on February 24, 2015 - 12:08:
Author: bugman
Date: Tue Feb 24 12:08:43 2015
New Revision: 27717

URL: http://svn.gna.org/viewcvs/relax?rev=27717&view=rev
Log:
Improvement for a RelaxError message when assembling structural data but no 
coordinates can be found.


Modified:
    trunk/pipe_control/structure/main.py

Modified: trunk/pipe_control/structure/main.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/pipe_control/structure/main.py?rev=27717&r1=27716&r2=27717&view=diff
==============================================================================
--- trunk/pipe_control/structure/main.py        (original)
+++ trunk/pipe_control/structure/main.py        Tue Feb 24 12:08:43 2015
@@ -134,7 +134,10 @@
 
     # No data.
     if mol_names == []:
-        raise RelaxError("No structural data matching the atom ID string 
'%s' can be found." % atom_id)
+        if atom_id != None:
+            raise RelaxError("No structural data matching the atom ID string 
'%s' can be found." % atom_id)
+        else:
+            raise RelaxError("No structural data can be found.")
 
     # Are all molecules the same?
     same_mol = True




Related Messages


Powered by MHonArc, Updated Wed Feb 25 14:00:02 2015