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':
|
||||
return redirect(index_url + '#' + url)
|
||||
else:
|
||||
time.sleep(2)
|
||||
time.sleep(0.1)
|
||||
return 'Wrong API key used', 404
|
||||
|
||||
|
||||
Reference in New Issue
Block a user