sprin / pg-discuss

A comment system backend in Python with PostgreSQL
http://pg-discuss.sprin.io/
10 stars 1 forks source link

Error when thread does not yet exist #15

Closed sprin closed 8 years ago

sprin commented 8 years ago

When fetching a thread that does not yet exist, we see an error ("uri=/"):

pg_discuss.queries.ThreadNotFoundError: Thread / not found

We need to handle an attempted fetch of a nonexistent thread gracefully, and create the thread on the first post.