8000 MNT: backout poorly thought out try/except · matplotlib/matplotlib@ea96ac8 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ea96ac8

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

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

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)
0