Thanks. This should now be OK:

#try:
#    try:
#        s = ... # socket opens
#
#        # various code ...
#    except socket.error, x:
#        # exception handling
#finally:
#    s.close() # socket closes

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to