Commit 437386b
committed
MNT: tweak MovieWriter.saving to be more cautious
- always try to call `finish` even if an exception is raised.
- return `self` so that
with writer.saving(...) as mv:
mv.grab_frame()
works as expected.1 parent f2c145e commit 437386b
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
239 | | - | |
240 | | - | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
241 | 243 | | |
242 | 244 | | |
243 | 245 | | |
| |||
0 commit comments