changeset 59:2dacbe7fb7f9

Fix returning html formatted error response
author Björn Ricks <bjoern.ricks@intevation.de>
date Wed, 12 Nov 2014 12:38:37 +0100
parents ea839127934d
children ae377f7eed18
files odfcast/convert.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/odfcast/convert.py	Wed Nov 12 12:21:09 2014 +0100
+++ b/odfcast/convert.py	Wed Nov 12 12:38:37 2014 +0100
@@ -49,8 +49,7 @@
         }), JSON_MIMETYPE
 
     def html(self, title, error_code, details):
-        data = ""
-        return (
+        data = (
             u'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">\n'
             u'<title>%(code)s %(name)s</title>\n'
             u'<h1>%(name)s</h1>\n'
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)