Skip to content

suppress exception upon quitting with qt4agg on osx #1098

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 29, 2012

Conversation

efiring
Copy link
Member

@efiring efiring commented Aug 17, 2012

Quitting a session of "ipython --pylab=qt" on osx 10.7, with open plot windows, triggers AttributeError; apparently the shutdown process has deleted the FigureCanvas "callbacks" attribute before the close event has had time to run the callbacks. This does not happen on linux. As far as I can tell, the simple solution proposed here, trapping the AttributeError along with the TypeError that was already being trapped, is harmless, and solves this minor annoyance on OSX.

efiring added a commit that referenced this pull request Aug 29, 2012
suppress exception upon quitting with qt4agg on osx
@efiring efiring merged commit cf7618c into matplotlib:master Aug 29, 2012
@efiring efiring deleted the suppress_closing_exception branch May 29, 2013 02:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant