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 amaury.forgeotdarc
Recipients amaury.forgeotdarc
Date 2008-11-21.22:42:46
SpamBayes Score 3.4322731e-09
Marked as misclassified No
Message-id <1227307368.24.0.863282757951.issue4383@psf.upfronthosting.co.za>
In-reply-to
Content
When IDLE cannot connect to its subprocess, it tries to display the 
socket.error. But since python 3.0 the exception variable is cleared 
after the "except:" block and unavailable for the displaying code.

Exception in thread SockThread:
Traceback (most recent call last):
  File "c:\dev\python\py3k\lib\threading.py", line 507, in 
_bootstrap_inner
    self.run()
  File "c:\dev\python\py3k\lib\threading.py", line 462, in run
    self._target(*self._args, **self._kwargs)
  File "c:\dev\python\py3k\lib\idlelib\run.py", line 125, in 
manage_socket
    show_socket_error(err, address)
UnboundLocalError: local variable 'err' referenced before assignment

Patch is attached.
History
Date User Action Args
2008-11-21 22:42:48amaury.forgeotdarcsetrecipients: + amaury.forgeotdarc
2008-11-21 22:42:48amaury.forgeotdarcsetmessageid: <1227307368.24.0.863282757951.issue4383@psf.upfronthosting.co.za>
2008-11-21 22:42:47amaury.forgeotdarclinkissue4383 messages
2008-11-21 22:42:46amaury.forgeotdarccreate