From d267be4455a117622d7db6b82e608711d102d7c9 Mon Sep 17 00:00:00 2001 From: Ruud Date: Sun, 17 Mar 2013 14:10:29 +0100 Subject: [PATCH] Only sleep on 404 when not in dev mode --- couchpotato/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/couchpotato/__init__.py b/couchpotato/__init__.py index 38b36174..7058facc 100644 --- a/couchpotato/__init__.py +++ b/couchpotato/__init__.py @@ -78,6 +78,7 @@ def page_not_found(error): r = '%s%s' % (request.url.rstrip('/'), index_url + '#' + url) return redirect(r) else: - time.sleep(0.1) + if not Env.get('dev'): + time.sleep(0.1) return 'Wrong API key used', 404