doctemplate.py: minor fix to error reporting
authorrgbecker
Thu, 27 May 2010 14:22:25 +0000
changeset 3384 4c9c0dcf0995
parent 3383 dabeb994f121
child 3385 e45ca0b2053c
doctemplate.py: minor fix to error reporting
src/reportlab/platypus/doctemplate.py
--- a/src/reportlab/platypus/doctemplate.py	Wed May 26 12:06:36 2010 +0000
+++ b/src/reportlab/platypus/doctemplate.py	Thu May 27 14:22:25 2010 +0000
@@ -1031,7 +1031,8 @@
         except:
             exc = sys.exc_info()[1]
             args = list(exc.args)
-            args[-1] += '\ndocExec %s lifetime=%r failed!' % (stmt,lifetime)
+            msg = '\ndocExec %s lifetime=%r failed!' % (stmt,lifetime)
+            args.append(msg)
             exc.args = tuple(args)
             for k in NS.iterkeys():
                 if k not in K0: