Don't wait to long on 404 error
This commit is contained in:
@@ -78,6 +78,6 @@ def page_not_found(error):
|
|||||||
if url[:3] != 'api':
|
if url[:3] != 'api':
|
||||||
return redirect(index_url + '#' + url)
|
return redirect(index_url + '#' + url)
|
||||||
else:
|
else:
|
||||||
time.sleep(2)
|
time.sleep(0.1)
|
||||||
return 'Wrong API key used', 404
|
return 'Wrong API key used', 404
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user