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 f13974d

Browse filesBrowse files
jklymakmeeseeksmachine
authored andcommitted
Backport PR #16742: nbagg: Don't send events if manager is disconnected.
1 parent 9b22934 commit f13974d
Copy full SHA for f13974d

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed

‎lib/matplotlib/backends/backend_webagg_core.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_webagg_core.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,8 @@ def handle_set_dpi_ratio(self, event):
343343
self.draw_idle()
344344

345345
def send_event(self, event_type, **kwargs):
346-
self.manager._send_event(event_type, **kwargs)
346+
if self.manager:
347+
self.manager._send_event(event_type, **kwargs)
347348

348349

349350
_JQUERY_ICON_CLASSES = {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.