Fix finally syntax

This commit is contained in:
Guido van Rossum 1992-04-17 16:32:53 +00:00
parent f8b7e926e0
commit 6f1f39188c
1 changed files with 6 additions and 5 deletions

View File

@ -76,11 +76,12 @@ def client(hostname):
#
otheraddr = gethostbyname(hostname), PORT1
try:
ioloop(s, otheraddr)
except KeyboardInterrupt:
log('client got intr')
except error:
log('client got error')
try:
ioloop(s, otheraddr)
except KeyboardInterrupt:
log('client got intr')
except error:
log('client got error')
finally:
s.sendto('', otheraddr)
log('client finished sending empty packet to server')