Finish non-existent API calls instead of timing out

This commit is contained in:
genial123
2014-06-28 08:19:05 +02:00
parent 14d3ab93da
commit 12e556e1d1

View File

@@ -89,6 +89,7 @@ class ApiHandler(RequestHandler):
route = route.strip('/')
if not api.get(route):
self.write('API call doesn\'t seem to exist')
self.finish()
return
# Create lock if it doesn't exist