mirror of
https://github.com/moparisthebest/SickRage
synced 2024-11-16 14:25:02 -05:00
fix for tornado error handler
This commit is contained in:
parent
7e0bb651b2
commit
bbbc7469fb
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user