summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1992-04-17 16:32:53 (GMT)
committerGuido van Rossum <guido@python.org>1992-04-17 16:32:53 (GMT)
commit6f1f39188c54b89bac8b0e3b91529ad733929bc4 (patch)
tree070e5a6c42fb562de368e96894cf6d8a0695c4ba
parentf8b7e926e099b68589b95d068036a8062bca4f01 (diff)
downloadcpython-6f1f39188c54b89bac8b0e3b91529ad733929bc4.zip
cpython-6f1f39188c54b89bac8b0e3b91529ad733929bc4.tar.gz
cpython-6f1f39188c54b89bac8b0e3b91529ad733929bc4.tar.bz2
Fix finally syntax
-rwxr-xr-xDemo/sgi/al/intercom.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/Demo/sgi/al/intercom.py b/Demo/sgi/al/intercom.py
index 0799efa..d6a13e7 100755
--- a/Demo/sgi/al/intercom.py
+++ b/Demo/sgi/al/intercom.py
@@ -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')