From b3d46f77e9a7934fac247880843b93a273ef8b5f Mon Sep 17 00:00:00 2001 From: echel0n Date: Sun, 29 Jun 2014 03:07:25 -0700 Subject: [PATCH] Fix for TypeError: write() --- sickbeard/webserve.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sickbeard/webserve.py b/sickbeard/webserve.py index 2980e389..97e01093 100644 --- a/sickbeard/webserve.py +++ b/sickbeard/webserve.py @@ -220,7 +220,9 @@ class MainHandler(RequestHandler): self.redirect(url) def get(self, *args, **kwargs): - self.write(self._dispatch()) + response = self._dispatch() + if response: + self.write(response) def post(self, *args, **kwargs): self._dispatch()