This commit is contained in:
elburg 2023-03-14 10:10:33 -07:00
parent 706cb22c76
commit bd6d112879
Signed by: elburg
SSH key fingerprint: SHA256:rSSayCr1za9SXPz4fKkUtsxSl1yVSk5XVUKfvuxe8o0

View file

@ -11,12 +11,10 @@ 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()