From 6f1f39188c54b89bac8b0e3b91529ad733929bc4 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 17 Apr 1992 16:32:53 +0000 Subject: [PATCH] Fix finally syntax --- Demo/sgi/al/intercom.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Demo/sgi/al/intercom.py b/Demo/sgi/al/intercom.py index 0799efa571a..d6a13e7fb50 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')