diff options
-rw-r--r-- | pastepy.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -219,6 +219,9 @@ class Paste(object): try: session = db.Session() paste = session.query(db.Paste).filter_by(hash = hash).one() + except db.NoResultFound: + self.start_response('404 Not Found', []) + return [] finally: session.close() |