mailr14323 - in /branches/gui_testing/gui: analyses/execute.py interpreter.py


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

Header


Content

Posted by edward on August 10, 2011 - 21:59:
Author: bugman
Date: Wed Aug 10 21:59:31 2011
New Revision: 14323

URL: http://svn.gna.org/viewcvs/relax?rev=14323&view=rev
Log:
The print outs for catching exceptions in threads is now going to STDERR 
rather than STDOUT.


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

Modified: branches/gui_testing/gui/analyses/execute.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/analyses/execute.py?rev=14323&r1=14322&r2=14323&view=diff
==============================================================================
--- branches/gui_testing/gui/analyses/execute.py (original)
+++ branches/gui_testing/gui/analyses/execute.py Wed Aug 10 21:59:31 2011
@@ -93,9 +93,9 @@
             status.exception_queue.put([self.data_index, sys.exc_info()])
 
             # Print the exception.
-            print("Exception raised in thread.\n")
+            sys.stderr.write("Exception raised in thread.\n\n")
             print_exc()
-            print("\n\n")
+            sys.stderr.write("\n\n\n")
 
             # Unlock the execution lock, if needed.
             if status.exec_lock.locked():

Modified: branches/gui_testing/gui/interpreter.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/interpreter.py?rev=14323&r1=14322&r2=14323&view=diff
==============================================================================
--- branches/gui_testing/gui/interpreter.py (original)
+++ branches/gui_testing/gui/interpreter.py Wed Aug 10 21:59:31 2011
@@ -27,6 +27,7 @@
 from Queue import Queue
 from re import search
 from string import split
+import sys
 from threading import Thread
 from traceback import print_exc
 
@@ -120,6 +121,6 @@
         # Handle all errors.
         except:
             # Print the exception.
-            print("Exception raised in thread.\n")
+            sys.stderr.write("Exception raised in thread.\n\n")
             print_exc()
-            print("\n\n")
+            sys.stderr.write("\n\n\n")




Related Messages


Powered by MHonArc, Updated Wed Aug 10 22:20:02 2011