mailr14145 - /branches/gui_testing/gui/misc.py


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

Header


Content

Posted by edward on August 04, 2011 - 18:06:
Author: bugman
Date: Thu Aug  4 18:06:01 2011
New Revision: 14145

URL: http://svn.gna.org/viewcvs/relax?rev=14145&view=rev
Log:
Full errors are raised in the protected_exec() function if in debugging mode.


Modified:
    branches/gui_testing/gui/misc.py

Modified: branches/gui_testing/gui/misc.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/misc.py?rev=14145&r1=14144&r2=14145&view=diff
==============================================================================
--- branches/gui_testing/gui/misc.py (original)
+++ branches/gui_testing/gui/misc.py Thu Aug  4 18:06:01 2011
@@ -33,6 +33,7 @@
 
 # relax module imports.
 from relax_errors import AllRelaxErrors
+from status import Status; status = Status()
 
 # relax GUI module imports.
 from gui.errors import gui_raise
@@ -358,6 +359,10 @@
 
     # Catch RelaxErrors.
     except AllRelaxErrors, instance:
+        # Raise the error in debugging mode.
+        if status.debug:
+            raise
+
         # Display a dialog with the error.
         gui_raise(instance, raise_flag=False)
 




Related Messages


Powered by MHonArc, Updated Thu Aug 04 18:20:02 2011