[Blends-commit] [SCM] website branch, master, updated. 4d84f1d00be757454d1b5c7a5cae3a43144dd289

Andreas Tille tille at debian.org
Thu Nov 13 10:30:39 UTC 2014


The following commit has been merged in the master branch:
commit 9870fe6bab96ac18129ed9685daf5d3f03b20a6e
Author: Andreas Tille <tille at debian.org>
Date:   Thu Nov 13 09:53:31 2014 +0100

    Catch potentially occuring bug

diff --git a/webtools/thermometer.py b/webtools/thermometer.py
index 3793815..1322f1e 100755
--- a/webtools/thermometer.py
+++ b/webtools/thermometer.py
@@ -396,12 +396,18 @@ the right shows the tasks of %s.""" ) \
 
     f = open(outputfile, 'w')
     template = loader.load('thermometer.xhtml')
-    print >> f, template.generate(**data).render('xhtml')
+    try:
+         print >> f, template.generate(**data).render('xhtml')
+    except TypeError, err:
+         print >>stderr, "Problem creating thermometer.html.\tMessage: %s" % (str(err))
     f.close()
     SetFilePermissions(outputfile)
     f = open(uoutputfile, 'w')
     utemplate = loader.load('uthermometer.xhtml')
-    print >> f, utemplate.generate(**data).render('xhtml')
+    try:
+        print >> f, utemplate.generate(**data).render('xhtml')
+    except TypeError, err:
+         print >>stderr, "Problem creating uthermometer.html.\tMessage: %s" % (str(err))
     f.close()
     SetFilePermissions(uoutputfile)
 

-- 
Static and dynamic websites for Debian Pure Blends



More information about the Blends-commit mailing list