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


_______________________________________________
relax (http://www.nmr-relax.com)

This is the relax-commits mailing list
[email protected]

To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits

Reply via email to