changeset 4479:16993b78b3e8

Debugging aid: print more info when expand fails.
author Jan Nieuwenhuizen <janneke@gnu.org>
date Fri, 24 Oct 2008 15:01:08 +0200
parents 890489888bd7
children cac863b50422
files gub/context.py
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/gub/context.py	Fri Oct 24 13:57:09 2008 +0200
+++ b/gub/context.py	Fri Oct 24 15:01:08 2008 +0200
@@ -159,10 +159,12 @@
         try:
             e = s % d
         except KeyError, v:
-            print 'format-string =', s
+            print 'format string: >>>' + s + '<<<'
+            print 'self:', self
             raise v
         except ValueError, v:
-            print 'format-string =', s
+            print 'format string: >>>' + s + '<<<'
+            print 'self:', self
             raise v
         return e