mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 11:16: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 *
|
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')
|
||||||
|
|
Loading…
Reference in a new issue