Author: bugman Date: Wed Jun 29 20:11:16 2011 New Revision: 13324 URL: http://svn.gna.org/viewcvs/relax?rev=13324&view=rev Log: The exception printing now occurs in the GUI thread level. Modified: branches/gui_testing/gui/analyses/execute.py branches/gui_testing/test_suite/gui_tests/base_classes.py Modified: branches/gui_testing/gui/analyses/execute.py URL: http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/analyses/execute.py?rev=13324&r1=13323&r2=13324&view=diff ============================================================================== --- branches/gui_testing/gui/analyses/execute.py (original) +++ branches/gui_testing/gui/analyses/execute.py Wed Jun 29 20:11:16 2011 @@ -26,6 +26,7 @@ # Python module imports. import sys from threading import Thread +from traceback import print_exc # relax module imports. from relax_errors import RelaxImplementError @@ -88,6 +89,11 @@ # Place the analysis index and execution info into the exception queue. status.analyses.exception_queue.put([self.data_index, sys.exc_info()]) + # Print the exception. + print("Exception raised in thread.\n") + print_exc() + print("\n\n") + # Unlock the execution lock. status.exec_lock.release() Modified: branches/gui_testing/test_suite/gui_tests/base_classes.py URL: http://svn.gna.org/viewcvs/relax/branches/gui_testing/test_suite/gui_tests/base_classes.py?rev=13324&r1=13323&r2=13324&view=diff ============================================================================== --- branches/gui_testing/test_suite/gui_tests/base_classes.py (original) +++ branches/gui_testing/test_suite/gui_tests/base_classes.py Wed Jun 29 20:11:16 2011 @@ -43,11 +43,6 @@ # Get the exception from the queue. index, exc = status.analyses.exception_queue.get(block=False) - # Print it. - print("Exception raised in thread.\n") - print_exception(exc[0], exc[1], exc[2]) - print("\n\n") - # Fail. self.fail()