diff options
-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') |