[z3-checkins] r33436 - z3/deliverance/branches/packaged/deliverance

ianb at codespeak.net ianb at codespeak.net
Thu Oct 19 03:03:56 CEST 2006


Author: ianb
Date: Thu Oct 19 03:03:53 2006
New Revision: 33436

Modified:
   z3/deliverance/branches/packaged/deliverance/htmlserialize.py
Log:
Make sure HTML() returns something, or else fail early.  (With really bad content it can just return None, which causes problems later)

Modified: z3/deliverance/branches/packaged/deliverance/htmlserialize.py
==============================================================================
--- z3/deliverance/branches/packaged/deliverance/htmlserialize.py	(original)
+++ z3/deliverance/branches/packaged/deliverance/htmlserialize.py	Thu Oct 19 03:03:53 2006
@@ -54,7 +54,9 @@
         charset = m.group('charset')
         text = text.decode(charset)
 
-    return etree.HTML(text)
+    content = etree.HTML(text)
+    assert content is not None
+    return content
     
 
         


More information about the z3-checkins mailing list