Commits

Olemis Lang committed 60683b4

GViz : Add missing try / except at data evaluation time to match error messages

Comments (0)

Files changed (1)

trac-dev/gviz/tracgviz/testing/test_gvizql.py

                         except IndexError :
                             pass
                     print 
-                    for row in data :
-                        print "= Row ="
-                        for val, col in izip(row, iter_schema()):
-                            print '  ', col[0], '=', val
+                    try:
+                        for row in data :
+                            print "= Row ="
+                            for val, col in izip(row, iter_schema()):
+                                print '  ', col[0], '=', val
+                    except Exception, exc:
+                        print
+                        print exc.__class__.__name__, ' : ', exc.message,
 
     l = MultiTestLoader([defaultTestLoader, \
                          DocTestLoader(