From bbbc7469fbaba6942b075c544967c11759c6441f Mon Sep 17 00:00:00 2001 From: echel0n Date: Sat, 21 Jun 2014 15:52:10 -0700 Subject: [PATCH] fix for tornado error handler --- sickbeard/webserve.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sickbeard/webserve.py b/sickbeard/webserve.py index 4ef29004..f1ef0e64 100644 --- a/sickbeard/webserve.py +++ b/sickbeard/webserve.py @@ -160,7 +160,7 @@ class MainHandler(RequestHandler): if status_code == 404: self.redirect('/home/') elif status_code == 401: - self.write(self.http_error_401_handler()) + self.finish(self.http_error_401_handler()) else: super(MainHandler, self).write_error(status_code, **kwargs)