Hi Ladislav > Hello, > My program sometimes raise the exception > > socket.error: (10061, 'Connection refused') > > How can I handle this kind of exception?
Enclose it in try, except socket.error. ie.:- try: #do stuff here except socket.error: #handle exception here Andy > Thank you for help. > Ladislav > > > _______________________________________________ > Tutor maillist - [EMAIL PROTECTED] > http://mail.python.org/mailman/listinfo/tutor > _______________________________________________ ActivePython mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/activepython