File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -234,14 +234,14 @@ def grab_frame(self, **savefig_kwargs):
234
234
# frame format and dpi.
235
235
self .fig .savefig (self ._frame_sink (), format = self .frame_format ,
236
236
dpi = self .dpi , ** savefig_kwargs )
237
- except (RuntimeError , IOError ):
237
+ except (RuntimeError , IOError ) as e :
238
238
out , err = self ._proc .communicate ()
239
239
verbose .report ('MovieWriter -- Error '
240
240
'running proc:\n %s\n %s' % (out ,
241
241
err ), level = 'helpful' )
242
- 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 ))
242
+ raise IOError ('Error saving animation to file (cause: {0}) '
243
+ 'Stdout: {1 } StdError: {2 }. It may help to re-run '
244
+ 'with --verbose-debug.' .format (e , out , err ))
245
245
246
246
def _frame_sink (self ):
247
247
'Returns the place to which frames should be written.'
You can’t perform that action at this time.
0 commit comments