summaryrefslogtreecommitdiff
path: root/pecan/core.py
diff options
context:
space:
mode:
Diffstat (limited to 'pecan/core.py')
-rw-r--r--pecan/core.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pecan/core.py b/pecan/core.py
index 85ae5e6..8962f42 100644
--- a/pecan/core.py
+++ b/pecan/core.py
@@ -541,7 +541,7 @@ class Pecan(object):
# set the body content
if isinstance(result, six.text_type):
resp.text = result
- else:
+ elif result:
resp.body = result
# set the content type