Commit 4605250
authored
Fix NameError when pydot is not installed in Beam Playground (#38074)
When pydot is not installed, the import in pipeline_graph.py fails
silently (caught by 'except ImportError: pass'), and subsequent calls
to pydot.Dot() raise a confusing NameError with no context.
Now _construct_graph() checks if pydot is available before use and
raises a clear RuntimeError with install instructions instead.
Fixes #378291 parent 532dd85 commit 4605250
1 file changed
Lines changed: 6 additions & 0 deletions
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
240 | 246 | | |
241 | 247 | | |
242 | 248 | | |
| |||
0 commit comments