mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-13 11:32:20 -05:00
Corrected self.finish to self.write
This commit is contained in:
parent
6ce68e3d97
commit
145433e19a
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user