mirror of
https://github.com/adulau/aha.git
synced 2024-12-26 10:46:11 +00:00
Fixed some bugs in exception handling
This commit is contained in:
parent
58e19929ba
commit
3008f3ba7c
1 changed files with 3 additions and 3 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue