Change boolean result from eval in report into ''
This commit is contained in:
1 parent
3ac9b800e3
commit
2c924912c6
1 file changed
+2
@@ -320,6 +320,8 @@ class Report(object):
|
||||
localcontext=localcontext)
|
||||
localcontext['time'] = time
|
||||
res = eval(node.nodeValue, localcontext)
|
||||
if isinstance(res, bool):
|
||||
res = ''
|
||||
if hasattr(res, '__str__'):
|
||||
res = res.__str__()
|
||||
if isinstance(res, basestring):
|
||||
|
||||
Reference in new issue
Block a user