mirror of
https://github.com/QingdaoU/JudgeServer.git
synced 2025-01-15 21:12:54 +00:00
fix typo
This commit is contained in:
parent
ea41c50b49
commit
93ca773da6
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user