Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d1f717 commit ecfc1e7Copy full SHA for ecfc1e7
1 file changed
lib/matplotlib/animation.py
@@ -234,12 +234,14 @@ def grab_frame(self, **savefig_kwargs):
234
# frame format and dpi.
235
self.fig.savefig(self._frame_sink(), format=self.frame_format,
236
dpi=self.dpi, **savefig_kwargs)
237
- except RuntimeError:
+ except (RuntimeError, IOError):
238
out, err = self._proc.communicate()
239
verbose.report('MovieWriter -- Error '
240
'running proc:\n%s\n%s' % (out,
241
err), level='helpful')
242
- raise
+ raise IOError('Error saving animation to file. '
243
+ 'Stdout: {0} StdError: {1}. It may help to re-run '
244
+ 'with --verbose-debug.'.format(out, err))
245
246
def _frame_sink(self):
247
'Returns the place to which frames should be written.'
0 commit comments