Fixed some bugs in exception handling

This commit is contained in:
Gerard Wagener 2010-01-21 13:46:00 +01:00
parent 58e19929ba
commit 3008f3ba7c

View file

@ -6,7 +6,7 @@
from ahalib import * from ahalib import *
import getopt import getopt
logfile='aha.log' #logfile='aha.log'
aha = AHAActions(None,None) aha = AHAActions(None,None)
ptress = ProcessTrees() ptress = ProcessTrees()
@ -106,9 +106,9 @@ try:
sys.exit(0) sys.exit(0)
except ValueError,e: except ValueError,e:
#File may be incomplete #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(str(e) + '\n')
sys.stderr.write(line) sys.stderr.write(line+'\n')
except getopt.GetoptError,e: except getopt.GetoptError,e:
sys.stderr.write(str(e)+'\n') sys.stderr.write(str(e)+'\n')