This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author taleinat
Recipients taleinat, terry.reedy
Date 2019-07-10.19:12:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1562785926.2.0.442729400594.issue37551@roundup.psfhosted.org>
In-reply-to
Content
Observed on macOS 10.14.5 with Python 3.8 from python.org, and with latest master branch.

Reproduction:
1. Open IDLE
2. "New File" (Cmd-Shift-n on macOS)
3. Quit using Cmd-q ("Quit Python" from the menu doesn't cause this!)

The exception traceback:
Exception in Tkinter callback
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/tkinter/__init__.py", line 1883, in __call__
    return self.func(*args)
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/idlelib/multicall.py", line 176, in handler
    r = l[i](event)
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/idlelib/filelist.py", line 54, in close_all_callback
    reply = edit.close()
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/idlelib/editor.py", line 1021, in close
    self._close()
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/idlelib/pyshell.py", line 312, in _close
    EditorWindow._close(self)
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/idlelib/editor.py", line 1025, in _close
    if self.io.filename:
AttributeError: 'NoneType' object has no attribute 'filename'
History
Date User Action Args
2019-07-10 19:12:06taleinatsetrecipients: + taleinat, terry.reedy
2019-07-10 19:12:06taleinatsetmessageid: <1562785926.2.0.442729400594.issue37551@roundup.psfhosted.org>
2019-07-10 19:12:06taleinatlinkissue37551 messages
2019-07-10 19:12:05taleinatcreate