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