mirror of
https://github.com/newnius/YAO-agent.git
synced 2025-12-15 13:56:44 +00:00
all in one
This commit is contained in:
1
main.py
1
main.py
@@ -156,6 +156,7 @@ class MyHandler(BaseHTTPRequestHandler):
|
|||||||
msg["code"] = 1
|
msg["code"] = 1
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
msg = {"code": 1, "error": str(e)}
|
msg = {"code": 1, "error": str(e)}
|
||||||
|
print(str(e))
|
||||||
|
|
||||||
self.send_response(200)
|
self.send_response(200)
|
||||||
self.send_header('Content-type', 'application/json')
|
self.send_header('Content-type', 'application/json')
|
||||||
|
|||||||
Reference in New Issue
Block a user