Commit c89db64
committed
Fix RecursionError when closing nbAgg figures.
Previously, if a figure number was not in the list of managed figures,
the destroy would be skipped, but now that only happens if a figure
number is passed. If a figure manager is passed, then the destroy
happens regardless. In nbAgg, this loops around closing/close_event and
eventually calls destroy again, leading to a RecursionError.1 parent 98dff87 commit c89db64
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
60 | 62 | | |
61 | 63 | | |
62 | 64 | | |
| |||
0 commit comments