]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix finally syntax
authorGuido van Rossum <guido@python.org>
Fri, 17 Apr 1992 16:32:53 +0000 (16:32 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 17 Apr 1992 16:32:53 +0000 (16:32 +0000)
Demo/sgi/al/intercom.py

index 0799efa571a163a84b29ada0da77a2a12cbc70db..d6a13e7fb50360f5f827ec4db4ebb49f77029ca1 100755 (executable)
@@ -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')