1
0
mirror of https://github.com/newnius/YAO-optimizer.git synced 2025-12-15 17:06:44 +00:00
This commit is contained in:
2020-05-02 18:37:37 +08:00
parent 11b8cba6cc
commit 7b73422b25
2 changed files with 18 additions and 16 deletions

View File

@@ -19,6 +19,7 @@ from keras.layers import LSTM
from math import sqrt
import numpy
import random
import traceback
PORT_NUMBER = 8080
lock = Lock()
@@ -216,6 +217,8 @@ class MyHandler(BaseHTTPRequestHandler):
if not success:
msg = {'code': 2, 'error': "Job " + job + " not exist"}
except Exception as e:
track = traceback.format_exc()
print(track)
msg = {'code': 1, 'error': str(e)}
self.send_response(200)