1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-12 11:02:21 -05:00

Fix for uncaught exception error for 404 errors

This commit is contained in:
echel0n 2014-06-29 19:17:15 -07:00
parent 145433e19a
commit 06e99ce4a7

View File

@ -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)