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

Skip to content

Commit 6fe42ad

Browse files
anntzertacaswell
authored andcommitted
Remove exception suppression in CloseEvent processing.
CallbackRegistry already replaces exceptions by printed tracebacks, which seems better than fully suppressing everything.
1 parent f293fc6 commit 6fe42ad

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

lib/matplotlib/backend_bases.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1285,15 +1285,6 @@ def _process(self):
12851285
class CloseEvent(Event):
12861286
"""An event triggered by a figure being closed."""
12871287

1288-
def _process(self):
1289-
try:
1290-
super()._process()
1291-
except (AttributeError, TypeError):
1292-
pass
1293-
# Suppress AttributeError/TypeError that occur when the python
1294-
# session is being killed. It may be that a better solution would
1295-
# be a mechanism to disconnect all callbacks upon shutdown.
1296-
12971288

12981289
class LocationEvent(Event):
12991290
"""

0 commit comments

Comments
 (0)