aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pysite/views/staff/jams/teams/view.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/pysite/views/staff/jams/teams/view.py b/pysite/views/staff/jams/teams/view.py
index c68da63e..6b30f9a2 100644
--- a/pysite/views/staff/jams/teams/view.py
+++ b/pysite/views/staff/jams/teams/view.py
@@ -1,3 +1,5 @@
+import logging
+
from rethinkdb import ReqlNonExistenceError
from werkzeug.exceptions import NotFound
@@ -7,6 +9,7 @@ from pysite.decorators import require_roles
from pysite.mixins import DBMixin
REQUIRED_KEYS = ("title", "date_start", "date_end")
+log = logging.getLogger(__name__)
class StaffView(RouteView, DBMixin):
@@ -75,6 +78,7 @@ class StaffView(RouteView, DBMixin):
jam_data = self.db.run(query)
except ReqlNonExistenceError:
+ log.exception("Failed RethinkDB query")
raise NotFound()
questions = {}