mailr19581 - /trunk/prompt/interpreter.py


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

Header


Content

Posted by edward on April 22, 2013 - 14:06:
Author: bugman
Date: Mon Apr 22 14:06:36 2013
New Revision: 19581

URL: http://svn.gna.org/viewcvs/relax?rev=19581&view=rev
Log:
Fix for the nasty bug #20756 (https://gna.org/bugs/?20756).

The problem was that the global execution lock was not always released by a 
relax script when
certain errors are raised during the script execution.  This does not occur 
for all types of error
though.  Now the release of the lock has been shifted into the 'finally' 
statement to absolutely
force lock release.


Modified:
    trunk/prompt/interpreter.py

Modified: trunk/prompt/interpreter.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/prompt/interpreter.py?rev=19581&r1=19580&r2=19581&view=diff
==============================================================================
--- trunk/prompt/interpreter.py (original)
+++ trunk/prompt/interpreter.py Mon Apr 22 14:06:36 2013
@@ -353,8 +353,8 @@
         sys.path.reverse()
         sys.path.pop(sys.path.index(script_path))
 
-    # Unlock execution if needed.
-    status.exec_lock.release()
+        # Unlock execution if needed.
+        status.exec_lock.release()
 
 
 def interact_prompt(self, intro=None, local={}):




Related Messages


Powered by MHonArc, Updated Mon Apr 22 14:20:02 2013