From 12e556e1d10eee9ba418d52ac8b9d2b5ae968d57 Mon Sep 17 00:00:00 2001 From: genial123 Date: Sat, 28 Jun 2014 08:19:05 +0200 Subject: [PATCH] Finish non-existent API calls instead of timing out --- couchpotato/api.py | 1 + 1 file changed, 1 insertion(+) diff --git a/couchpotato/api.py b/couchpotato/api.py index 99a2c6a..b21cfeb 100644 --- a/couchpotato/api.py +++ b/couchpotato/api.py @@ -89,6 +89,7 @@ class ApiHandler(RequestHandler): route = route.strip('/') if not api.get(route): self.write('API call doesn\'t seem to exist') + self.finish() return # Create lock if it doesn't exist