buildframework/helium/sf/python/pythoncore/lib/comments.py
changeset 628 7c4a911dc066
parent 587 85df38eb4012
--- a/buildframework/helium/sf/python/pythoncore/lib/comments.py	Wed Jun 16 16:51:40 2010 +0300
+++ b/buildframework/helium/sf/python/pythoncore/lib/comments.py	Fri Aug 13 14:59:05 2010 +0300
@@ -87,12 +87,10 @@
             if COMMENT_SYMBOLS.has_key(file_type):
                 for i in range(len(COMMENT_SYMBOLS[file_type])): 
                     comment = comment.replace(COMMENT_SYMBOLS[file_type][i], "")
-            try:
-                doc.commentLog.xml_append_fragment(comment)
-                # Add a generic file attribute to the comment to label which file it comes from
-                doc.commentLog.xml_children[-1].xml_set_attribute(u'file', unicode(filename))
-            except Exception:
-                _logger.warning("A comment in '%s' is not valid XML." % filename)
+                    
+            doc.commentLog.xml_append_fragment(comment)
+            # Add a generic file attribute to the comment to label which file it comes from
+            doc.commentLog.xml_children[-1].xml_set_attribute(u'file', unicode(filename))
 
         #print doc.xml()
         return doc