From 9bf006f4d39a716f32f647a2f1123c67478656ce Mon Sep 17 00:00:00 2001 From: Ruud Date: Sat, 15 Jun 2013 21:43:14 +0200 Subject: [PATCH] Return if api is not found --- couchpotato/api.py | 1 + 1 file changed, 1 insertion(+) diff --git a/couchpotato/api.py b/couchpotato/api.py index 6f9a0f69..20eaa332 100644 --- a/couchpotato/api.py +++ b/couchpotato/api.py @@ -46,6 +46,7 @@ class ApiHandler(RequestHandler): def get(self, route): if not api.get(route): self.write('API call doesn\'t seem to exist') + return kwargs = {} for x in self.request.arguments: