From: Guido van Rossum Date: Fri, 17 Apr 1992 16:32:53 +0000 (+0000) Subject: Fix finally syntax X-Git-Tag: v0.9.8~345 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6f1f39188c54b89bac8b0e3b91529ad733929bc4;p=thirdparty%2FPython%2Fcpython.git Fix finally syntax --- diff --git a/Demo/sgi/al/intercom.py b/Demo/sgi/al/intercom.py index 0799efa571a1..d6a13e7fb503 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')