Corrected self.finish to self.write

This commit is contained in:
echel0n 2014-06-29 18:57:02 -07:00
parent 6ce68e3d97
commit 145433e19a
1 changed files with 1 additions and 1 deletions

View File

@ -165,7 +165,7 @@ class MainHandler(RequestHandler):
def write_error(self, status_code, **kwargs):
if status_code == 401:
self.finish(self.http_error_401_handler())
self.write(self.http_error_401_handler())
elif status_code == 404:
redirect('/home/')
else: