Proper errors when server cannot bind

This commit is contained in:
Channel Cat
2016-10-14 03:42:20 -07:00
parent 2cfce77328
commit 33f712ef9b
2 changed files with 9 additions and 2 deletions

View File

@@ -18,4 +18,4 @@ async def test(request):
async def test(request):
return json({ "test": True, "files": request.files, "fields": request.form })
app.run(host="0.0.0.0", port=sys.argv[1], debug=True)
app.run(host="0.0.0.0", port=sys.argv[1])