[Tutor] help with web programming

Ignacio Vazquez-Abrams ignacio@openservices.net
Sat, 1 Sep 2001 00:19:18 -0400 (EDT)


On Fri, 31 Aug 2001, Daniel Coughlin wrote:

> Hmmmm, it might be somekind of security setting, I suppose. I am using this
> script for web testing on a private network, but I will consult with my
> System Admistrator (knowing him it probably is a security setting) to find out
> more. Thanks for the tip.
>
> Daniel

You misunderstood what I said (don't worry, you're about the fifth today...).

What I meant was to tune your exception to catch IOError #10054 exclusively:

---
try:
   ...
except IOError:
  if sys.exc_info()[1].errno!=10054:
    raise
   ...
---

-- 
Ignacio Vazquez-Abrams  <ignacio@openservices.net>