mailr13323 - /branches/gui_testing/gui/analyses/execute.py


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

Header


Content

Posted by edward on June 29, 2011 - 20:06:
Author: bugman
Date: Wed Jun 29 20:06:46 2011
New Revision: 13323

URL: http://svn.gna.org/viewcvs/relax?rev=13323&view=rev
Log:
The execution lock is now released if an error is thrown in the thread.


Modified:
    branches/gui_testing/gui/analyses/execute.py

Modified: branches/gui_testing/gui/analyses/execute.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/analyses/execute.py?rev=13323&r1=13322&r2=13323&view=diff
==============================================================================
--- branches/gui_testing/gui/analyses/execute.py (original)
+++ branches/gui_testing/gui/analyses/execute.py Wed Jun 29 20:06:46 2011
@@ -82,9 +82,14 @@
         # Execute the analysis, catching errors.
         try:
             self.run_analysis()
+
+        # Handle all errors.
         except:
             # Place the analysis index and execution info into the exception 
queue.
             status.analyses.exception_queue.put([self.data_index, 
sys.exc_info()])
+
+            # Unlock the execution lock.
+            status.exec_lock.release()
 
 
     def run_analysis(self):




Related Messages


Powered by MHonArc, Updated Wed Jun 29 20:20:05 2011