提交 7733f27d authored 作者: Ziye Fan's avatar Ziye Fan

if verbose is false, no need for other information

上级 e8a8c98c
...@@ -216,10 +216,11 @@ class Validator(Feature): ...@@ -216,10 +216,11 @@ class Validator(Feature):
raise raise
else: else:
verbose = uf.f_locals.get('verbose', False) verbose = uf.f_locals.get('verbose', False)
r = uf.f_locals.get('r', "")
reason = uf_info.function
if verbose: if verbose:
print("validate failed on node %s.\n Reason: %s, %s" % (r, reason, e)) r = uf.f_locals.get('r', "")
reason = uf_info.function
print("validate failed on node %s.\n Reason: %s, %s" %
(r, reason, e))
raise raise
t1 = time.time() t1 = time.time()
if fgraph.profile: if fgraph.profile:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论