From feabf20c8cc143546920d8cd7da4436228e29027 Mon Sep 17 00:00:00 2001 From: echel0n Date: Sat, 28 Jun 2014 23:19:04 -0700 Subject: [PATCH] Test fix #5 for blank pages --- sickbeard/webserve.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sickbeard/webserve.py b/sickbeard/webserve.py index 3805caf6..fd061f3d 100644 --- a/sickbeard/webserve.py +++ b/sickbeard/webserve.py @@ -218,10 +218,13 @@ class MainHandler(RequestHandler): def get(self, *args, **kwargs): response = self._dispatch() - self.finish(response) + if response: + self.finish(response) def post(self, *args, **kwargs): - self._dispatch() + response = self._dispatch() + if response: + self.finish(response) def robots_txt(self, *args, **kwargs): """ Keep web crawlers out """