aboutsummaryrefslogtreecommitdiff
path: root/app/handlers/response.py
diff options
context:
space:
mode:
authorMilo Casagrande <milo.casagrande@linaro.org>2014-11-12 17:35:34 +0100
committerMilo Casagrande <milo.casagrande@linaro.org>2014-11-12 17:35:34 +0100
commitfa9c001a2b88a9c7ee43015528c4e938cb46c0db (patch)
treee1a10cd8173a06d124bd57e66d3412763e0010b2 /app/handlers/response.py
parenta6d2a1d4df3c2544fa0425dc492b11fcca1c70ef (diff)
Add /lab URL handler.
Change-Id: I89a770993556b1c1795108e200a0e2bfb956c761
Diffstat (limited to 'app/handlers/response.py')
-rw-r--r--app/handlers/response.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/handlers/response.py b/app/handlers/response.py
index ae21426..653f815 100644
--- a/app/handlers/response.py
+++ b/app/handlers/response.py
@@ -149,7 +149,7 @@ class HandlerResponse(object):
# The pymongo cursor is an iterable.
if not isinstance(value, (ListType, Cursor)):
value = [value]
- if isinstance(value, Cursor):
+ elif isinstance(value, Cursor):
value = [r for r in value]
self._result = value