Catch ValueError instead of Exception for post method

This commit is contained in:
Sheng
2018-08-25 19:51:05 +08:00
parent 9fd8d1368c
commit df26d0e677
2 changed files with 38 additions and 11 deletions
+1 -1
View File
@@ -233,7 +233,7 @@ class IndexHandler(MixinHandler, tornado.web.RequestHandler):
try:
worker = yield future
except Exception as exc:
except ValueError as exc:
status = str(exc)
else:
worker_id = worker.id