Ooops, forgot the parens.

This commit is contained in:
Ionel Cristian Mărieș 2013-08-27 14:38:32 +03:00
parent 3287aa2a18
commit c76a2bea1e
1 changed files with 2 additions and 2 deletions

View File

@ -46,11 +46,11 @@ class TableData(object):
)
else:
# really horrible, but this syntax is not supported on PY3 and would not work otherwise
exec """raise ValueError, (
exec("""raise ValueError, (
'data must be QuerySet-like (have count and '
'order_by) or support list(data) -- %s has '
'neither. Original exception: %s' % (type(data).__name__, ex)
), sys.exc_info()[2]"""
), sys.exc_info()[2]""")
def __len__(self):
if not hasattr(self, "_length"):