Commit 09de72c
committed
Fix crash when calling pybind11::print in a subsystem:windows build
in line: file = module_::import("sys").attr("stdout"); the file will be none in a windows application build. won't be catched since there's no exception, and crashed in later access1 parent ce9f83c commit 09de72c
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3548 | 3548 | | |
3549 | 3549 | | |
3550 | 3550 | | |
| 3551 | + | |
| 3552 | + | |
| 3553 | + | |
3551 | 3554 | | |
3552 | 3555 | | |
3553 | 3556 | | |
| |||
0 commit comments