This commit is contained in:
李扬 2017-06-15 17:58:38 +08:00 committed by GitHub
parent ea41c50b49
commit 93ca773da6

View File

@ -131,7 +131,7 @@ class JudgeServer(object):
logger.exception(e) logger.exception(e)
ret = dict() ret = dict()
ret["err"] = e.__class__.__name__ ret["err"] = e.__class__.__name__
ret["data"] = e.message ret["data"] = str(e)
return json.dumps(ret) return json.dumps(ret)
except Exception as e: except Exception as e:
logger.exception(e) logger.exception(e)
@ -156,4 +156,4 @@ wsgiapp = app.wsgifunc()
# gunicorn -w 4 -b 0.0.0.0:8080 server:wsgiapp # gunicorn -w 4 -b 0.0.0.0:8080 server:wsgiapp
if __name__ == "__main__": if __name__ == "__main__":
app.run() app.run()