summaryrefslogtreecommitdiffstats
path: root/Lib/asyncore.py
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2001-10-30 14:16:17 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2001-10-30 14:16:17 (GMT)
commitf24339f6f7b6458e059a8a2bc8b805e40c1fb359 (patch)
treed2dcb1603a926d1db0f35c3e7fcd1575b26d1c37 /Lib/asyncore.py
parentfc6a89270e794ea11637c2d5a53e6b84f869642f (diff)
downloadcpython-f24339f6f7b6458e059a8a2bc8b805e40c1fb359.zip
cpython-f24339f6f7b6458e059a8a2bc8b805e40c1fb359.tar.gz
cpython-f24339f6f7b6458e059a8a2bc8b805e40c1fb359.tar.bz2
/F observes that we need an else: in connect()
Diffstat (limited to 'Lib/asyncore.py')
-rw-r--r--Lib/asyncore.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/asyncore.py b/Lib/asyncore.py
index 684e5d2..5740fe1 100644
--- a/Lib/asyncore.py
+++ b/Lib/asyncore.py
@@ -308,7 +308,8 @@ class dispatcher:
self.addr = address
self.connected = 1
self.handle_connect()
- raise socket.error, err
+ else:
+ raise socket.error, err
def accept (self):
try: