From 620efb993d8c064f0fb1f52136ac8b53eea532ce Mon Sep 17 00:00:00 2001 From: OceanWolf Date: Wed, 23 Sep 2015 00:25:14 +0200 Subject: [PATCH] AttributeError --- lib/matplotlib/backend_tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/backend_tools.py b/lib/matplotlib/backend_tools.py index 1daba5e41789..b1f03b736103 100644 --- a/lib/matplotlib/backend_tools.py +++ b/lib/matplotlib/backend_tools.py @@ -327,7 +327,7 @@ class ToolQuit(ToolBase): def trigger(self, sender, event, data=None): try: manager = self.figure.canvas.manager - except: + except AttributeError: pass else: manager.destroy('window_destroy_event')