mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-21 17:13:42 +00:00
fix for tornado error handler
This commit is contained in:
parent
7e0bb651b2
commit
bbbc7469fb
1 changed files with 1 additions and 1 deletions
|
@ -160,7 +160,7 @@ class MainHandler(RequestHandler):
|
||||||
if status_code == 404:
|
if status_code == 404:
|
||||||
self.redirect('/home/')
|
self.redirect('/home/')
|
||||||
elif status_code == 401:
|
elif status_code == 401:
|
||||||
self.write(self.http_error_401_handler())
|
self.finish(self.http_error_401_handler())
|
||||||
else:
|
else:
|
||||||
super(MainHandler, self).write_error(status_code, **kwargs)
|
super(MainHandler, self).write_error(status_code, **kwargs)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue