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 c61bf1b

Browse filesBrowse files
committed
Remove exception suppression in CloseEvent processing.
CallbackRegistry already replaces exceptions by printed tracebacks, which seems better than fully suppressing everything.
1 parent 02548cb commit c61bf1b
Copy full SHA for c61bf1b

File tree

Expand file treeCollapse file tree

1 file changed

+0
-9
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+0
-9
lines changed

‎lib/matplotlib/backend_bases.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backend_bases.py
-9Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.