mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-07 10:33:38 +00:00
Fix for uncaught exception error for 404 errors
This commit is contained in:
parent
145433e19a
commit
06e99ce4a7
1 changed files with 1 additions and 1 deletions
|
@ -167,7 +167,7 @@ class MainHandler(RequestHandler):
|
||||||
if status_code == 401:
|
if status_code == 401:
|
||||||
self.write(self.http_error_401_handler())
|
self.write(self.http_error_401_handler())
|
||||||
elif status_code == 404:
|
elif status_code == 404:
|
||||||
redirect('/home/')
|
self.redirect('/home/')
|
||||||
else:
|
else:
|
||||||
logger.log(traceback.format_exc(), logger.DEBUG)
|
logger.log(traceback.format_exc(), logger.DEBUG)
|
||||||
super(MainHandler, self).write_error(status_code, **kwargs)
|
super(MainHandler, self).write_error(status_code, **kwargs)
|
||||||
|
|
Loading…
Reference in a new issue