From 3008f3ba7ce64381e15124855d0f8cac4bf10bb7 Mon Sep 17 00:00:00 2001 From: Gerard Wagener Date: Thu, 21 Jan 2010 13:46:00 +0100 Subject: [PATCH] Fixed some bugs in exception handling --- aha/aha-eye.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aha/aha-eye.py b/aha/aha-eye.py index dc6a39036ce..c5fad46b392 100644 --- a/aha/aha-eye.py +++ b/aha/aha-eye.py @@ -6,7 +6,7 @@ from ahalib import * import getopt -logfile='aha.log' +#logfile='aha.log' aha = AHAActions(None,None) ptress = ProcessTrees() @@ -106,9 +106,9 @@ try: sys.exit(0) except ValueError,e: #File may be incomplete - sys.stderr("Value error, file may be incomplete\n") + sys.stderr.write("Value error, file may be incomplete\n") sys.stderr.write(str(e) + '\n') - sys.stderr.write(line) + sys.stderr.write(line+'\n') except getopt.GetoptError,e: sys.stderr.write(str(e)+'\n')