Skip to content

Commit a3fb5ae

Browse files
committed
Enable to print error messages.
1 parent 256c75f commit a3fb5ae

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

graph_net/torch/collect_stats.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,8 +369,9 @@ def main(args):
369369
text=True,
370370
timeout=600,
371371
)
372-
if result.returncode == 0:
373-
print(result.stdout)
372+
print(result.stdout)
373+
if result.returncode != 0:
374+
print(result.stderr)
374375
i += 1
375376

376377

0 commit comments

Comments
 (0)