X Tutup
Skip to content

suppress exception upon quitting with qt4agg on osx#1098

Merged
efiring merged 1 commit intomatplotlib:masterfrom
efiring:suppress_closing_exception
Aug 29, 2012
Merged

suppress exception upon quitting with qt4agg on osx#1098
efiring merged 1 commit intomatplotlib:masterfrom
efiring:suppress_closing_exception

Conversation

@efiring
Copy link
Copy Markdown
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

X Tutup