Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ea96ac8

Browse files
committed
MNT: backout poorly thought out try/except
1 parent e7393d9 commit ea96ac8

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

lib/matplotlib/animation.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -859,11 +859,7 @@ def _blit_clear(self, artists, bg_cache):
859859
# cache and restore.
860860
axes = set(a.axes for a in artists)
861861
for a in axes:
862-
try:
863-
a.figure.canvas.restore_region(bg_cache[a])
864-
except KeyError:
865-
# something has happened out of order?
866-
pass
862+
a.figure.canvas.restore_region(bg_cache[a])
867863

868864
def _setup_blit(self):
869865
# Setting up the blit requires: a cache of the background for the

0 commit comments

Comments
 (0)