The following commit has been merged in the master branch:
commit 9870fe6bab96ac18129ed9685daf5d3f03b20a6e
Author: Andreas Tille <[email protected]>
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

_______________________________________________
Blends-commit mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/blends-commit

Reply via email to