Don't wait to long on 404 error

This commit is contained in:
Ruud
2012-04-30 11:01:00 +02:00
parent 57baa563a5
commit bbc54cfc2e
+1 -1
View File
@@ -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