diff options
-rw-r--r-- | quoins/controllers.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/quoins/controllers.py b/quoins/controllers.py index 089ada2..d22cd51 100644 --- a/quoins/controllers.py +++ b/quoins/controllers.py | |||
@@ -478,6 +478,7 @@ Comment: | |||
478 | @expose(template="genshi:quoinstemplates.post") | 478 | @expose(template="genshi:quoinstemplates.post") |
479 | def post(self, id): | 479 | def post(self, id): |
480 | post = DBSession.query(Post).get(id) | 480 | post = DBSession.query(Post).get(id) |
481 | if not post: abort(404) | ||
481 | pylons.response.headers['X-Pingback']=self.absolute_url('/pingback/') | 482 | pylons.response.headers['X-Pingback']=self.absolute_url('/pingback/') |
482 | return dict(quoins = self, | 483 | return dict(quoins = self, |
483 | blog = post.blog, | 484 | blog = post.blog, |