Finish non-existent API calls instead of timing out
This commit is contained in:
@@ -89,6 +89,7 @@ class ApiHandler(RequestHandler):
|
|||||||
route = route.strip('/')
|
route = route.strip('/')
|
||||||
if not api.get(route):
|
if not api.get(route):
|
||||||
self.write('API call doesn\'t seem to exist')
|
self.write('API call doesn\'t seem to exist')
|
||||||
|
self.finish()
|
||||||
return
|
return
|
||||||
|
|
||||||
# Create lock if it doesn't exist
|
# Create lock if it doesn't exist
|
||||||
|
|||||||
Reference in New Issue
Block a user