diff options
author | Guido van Rossum <guido@python.org> | 1992-04-17 16:32:53 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1992-04-17 16:32:53 (GMT) |
commit | 6f1f39188c54b89bac8b0e3b91529ad733929bc4 (patch) | |
tree | 070e5a6c42fb562de368e96894cf6d8a0695c4ba /Demo | |
parent | f8b7e926e099b68589b95d068036a8062bca4f01 (diff) | |
download | cpython-6f1f39188c54b89bac8b0e3b91529ad733929bc4.zip cpython-6f1f39188c54b89bac8b0e3b91529ad733929bc4.tar.gz cpython-6f1f39188c54b89bac8b0e3b91529ad733929bc4.tar.bz2 |
Fix finally syntax
Diffstat (limited to 'Demo')
-rwxr-xr-x | Demo/sgi/al/intercom.py | 11 |
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') |