mailr16400 - /branches/uf_redesign/gui/string_conv.py


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

Header


Content

Posted by edward on May 22, 2012 - 17:53:
Author: bugman
Date: Tue May 22 17:53:34 2012
New Revision: 16400

URL: http://svn.gna.org/viewcvs/relax?rev=16400&view=rev
Log:
Fix for the gui.string_conv.gui_to_py() function - Syntax or other errors are 
now handled.

This is an issue for the value.set user functions where the text '15N' causes 
a SyntaxError to be
raised by the eval() call.


Modified:
    branches/uf_redesign/gui/string_conv.py

Modified: branches/uf_redesign/gui/string_conv.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/uf_redesign/gui/string_conv.py?rev=16400&r1=16399&r2=16400&view=diff
==============================================================================
--- branches/uf_redesign/gui/string_conv.py (original)
+++ branches/uf_redesign/gui/string_conv.py Tue May 22 17:53:34 2012
@@ -239,7 +239,7 @@
         value = eval(string)
 
     # A string or sequence of strings.
-    except NameError:
+    except:
         value = str(string)
 
     # Return the python type.




Related Messages


Powered by MHonArc, Updated Tue May 22 18:20:02 2012