gdritter repos frony-ritter-designs / 7319b0f
Remove throwing notfound Getty Ritter 4 years ago
1 changed file(s) with 2 addition(s) and 6 deletion(s). Collapse all Expand all
187187 @app.route('/<name>/')
188188 @main
189189 def page(name):
190 try:
191 pg = db.get_page(name)
192 return (pg.title,
193 markdown.markdown(pg.text))
194 except:
195 raise web.notfound()
190 pg = db.get_page(name)
191 return (pg.title, markdown.markdown(pg.text))
196192
197193
198194 # class admin: