Skip to content

Commit 84e872d

Browse files
authored
Merge pull request #16966 from anntzer/animfallback
Fix animation writer fallback.
2 parents c3865e5 + 3ab7641 commit 84e872d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/animation.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1090,7 +1090,7 @@ def func(current_frame: int, total_frames: int) -> Any
10901090
if writers.is_available(writer):
10911091
writer = writers[writer](fps, **writer_kwargs)
10921092
else:
1093-
alt_writer = next(writers, None)
1093+
alt_writer = next(iter(writers), None)
10941094
if alt_writer is None:
10951095
raise ValueError("Cannot save animation: no writers are "
10961096
"available. Please install ffmpeg to "

0 commit comments

Comments
 (0)