Skip to content

Commit 3eb1632

Browse files
committed
draw_graph() is executed with try-except and says something to stderr.
1 parent 4d676cb commit 3eb1632

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/dataflow_example/dataflow_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def mkMultAdd():
5050
try:
5151
df.draw_graph()
5252
except:
53-
print('Dataflow graph could not be generated.', sys.stderr)
53+
print('Dataflow graph could not be generated.', file=sys.stderr)
5454

5555
return m
5656

tests/lib_dataflow_/draw_graph/lib_dataflow_draw_graph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def mkLed():
3535
try:
3636
df.draw_graph()
3737
except:
38-
print('Dataflow graph could not be generated.', sys.stderr)
38+
print('Dataflow graph could not be generated.', file=sys.stderr)
3939

4040
return m
4141

0 commit comments

Comments
 (0)