Closed elguavas closed 9 years ago
btw this is when viewing the site via cactus serve.
duplicate of issue #84 and I think I reported the same but can't find it right now
@elguavas it should happen also when you build it
I made this "stupid" change to make things work in my configuration:
diff --git a/cactus/server.py b/cactus/server.py
index 2c8588a..e194272 100644
--- a/cactus/server.py
+++ b/cactus/server.py
@@ -58,7 +58,7 @@ class StaticHandler(tornado.web.StaticFileHandler):
def write_error(self, status_code, **kwargs):
if status_code == 404:
- return self.render("error.html")
+ return self.render("error/index.html")
return super(StaticHandler, self).write_error(status_code, **kwargs)
--
But of course it should check if prettify is true and render the right file path.
thanks fedelibre, at least i know it's a known issue and can hack around it for now.
Thanks for the report! Here's a fix:
https://github.com/koenbok/Cactus/commit/98e481c132cc49215fb8281ed55061c7a97bbf6e
(note: I haven't made a PyPi release with this yet, so you'd have to install from master to get the fix)
Cheers
if i have prettify on, when i try an url that should get a 404 i instead get an exception in the console.
an example exception (with path starts elided) is: