Allowing for strange flowables with no _traceIfo object
authorwilliam_ng
Thu, 13 Nov 2003 17:15:19 +0000
changeset 2127 d5e43db37d59
parent 2126 cb38a911f83c
child 2128 7792034c70ab
Allowing for strange flowables with no _traceIfo object
reportlab/platypus/doctemplate.py
--- a/reportlab/platypus/doctemplate.py	Wed Nov 12 17:02:52 2003 +0000
+++ b/reportlab/platypus/doctemplate.py	Thu Nov 13 17:15:19 2003 +0000
@@ -1,9 +1,9 @@
 #copyright ReportLab Inc. 2000
 #see license.txt for license details
 #history http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/reportlab/platypus/doctemplate.py?cvsroot=reportlab
-#$Header: /tmp/reportlab/reportlab/platypus/doctemplate.py,v 1.67 2003/11/09 00:54:22 andy_robinson Exp $
+#$Header: /tmp/reportlab/reportlab/platypus/doctemplate.py,v 1.68 2003/11/13 17:15:19 william_ng Exp $
 
-__version__=''' $Id: doctemplate.py,v 1.67 2003/11/09 00:54:22 andy_robinson Exp $ '''
+__version__=''' $Id: doctemplate.py,v 1.68 2003/11/13 17:15:19 william_ng Exp $ '''
 
 __doc__="""
 This module contains the core structure of platypus.
@@ -610,7 +610,7 @@
                 self.handle_flowable(flowables)
             except:
                 #if it has trace info, add it to the traceback message.
-                if first._traceInfo:
+                if hasattr(first, '_traceInfo') and first._traceInfo:
                     exc = sys.exc_info()[1]
                     args = list(exc.args)
                     tr = first._traceInfo