hmmm
This commit is contained in:
parent
706cb22c76
commit
bd6d112879
1 changed files with 6 additions and 8 deletions
|
@ -11,14 +11,12 @@ if __name__ == "__main__":
|
||||||
output=owo.main()
|
output=owo.main()
|
||||||
del owo
|
del owo
|
||||||
if output.__contains__('_err'):
|
if output.__contains__('_err'):
|
||||||
#from yaml import dump
|
print("an error occured!", file=sys.stderr)
|
||||||
#print("exception! check stderr!!")
|
import traceback
|
||||||
#print(dump(output),file=sys.stderr)
|
print(output['exception'])
|
||||||
from json import dumps
|
traceback.print_exc(output['exception'],file=sys.stderr)
|
||||||
print(dumps(output))
|
|
||||||
sys.exit(1)
|
|
||||||
if output.__contains__('_kb'):
|
if output.__contains__('_kb'):
|
||||||
print("interupted by keyboard")
|
print("interupted by keyboard")
|
||||||
sys.exit()
|
sys.exit()
|
||||||
else:
|
else:
|
||||||
pass # output results
|
pass # output results
|
||||||
|
|
Loading…
Reference in a new issue