Remove throwing notfound
Getty Ritter
4 years ago
187 | 187 | @app.route('/<name>/') |
188 | 188 | @main |
189 | 189 | 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)) | |
196 | 192 | |
197 | 193 | |
198 | 194 | # class admin: |