mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-12 19:12:26 -05:00
Fix for uncaught exception error for 404 errors
This commit is contained in:
parent
145433e19a
commit
06e99ce4a7
@ -167,7 +167,7 @@ class MainHandler(RequestHandler):
|
||||
if status_code == 401:
|
||||
self.write(self.http_error_401_handler())
|
||||
elif status_code == 404:
|
||||
redirect('/home/')
|
||||
self.redirect('/home/')
|
||||
else:
|
||||
logger.log(traceback.format_exc(), logger.DEBUG)
|
||||
super(MainHandler, self).write_error(status_code, **kwargs)
|
||||
|
Loading…
Reference in New Issue
Block a user