Fixing annoying stack traces when all you've done is kept a log file open in Vim fix
authorIain Williamson <iain.williamson@nokia.com>
Tue, 19 Jan 2010 19:32:36 +0000
branchfix
changeset 164 c597353e69c5
parent 163 c3eca3dd5925
child 165 0921bf34b487
Fixing annoying stack traces when all you've done is kept a log file open in Vim
sbsv2/raptor/test/common/raptor_tests.py
--- a/sbsv2/raptor/test/common/raptor_tests.py	Tue Jan 19 18:53:34 2010 +0000
+++ b/sbsv2/raptor/test/common/raptor_tests.py	Tue Jan 19 19:32:36 2010 +0000
@@ -166,7 +166,7 @@
 							print "\nEPOCROOT-CLEAN ERROR:"
 							print (sys.exc_type.__name__ + ":"), \
 									sys.exc_value
-							if sys.exc_type.__name__ == "WindowsError":
+							if sys.exc_type.__name__ != "WindowsError":
 								print traceback.print_tb(sys.exc_traceback)
 									
 			# This loop handles folders
@@ -182,8 +182,9 @@
 					except:
 						print "\nEPOCROOT-CLEAN ERROR:"
 						print (sys.exc_type.__name__ + ":"), \
-								sys.exc_value, "\n", \
-								traceback.print_tb(sys.exc_traceback)
+								sys.exc_value
+						if sys.exc_type.__name__ != "WindowsError":
+							print traceback.print_tb(sys.exc_traceback)
 	except IOError,e:
 		print e