> Message: 7
> Date: Sun, 10 Aug 2008 18:16:38 -0400
> From: James <[EMAIL PROTECTED]>
> Subject: Re: [Tutor] Unable to catch exception
> To: "Kent Johnson" <[EMAIL PROTECTED]>
> Cc: tutor@python.org
> Message-ID:
> <[EMAIL PROTECTED
On Sun, Aug 10, 2008 at 6:16 PM, James <[EMAIL PROTECTED]> wrote:
> Kent,
>
> I'm not importing BadStatusLine. I'm only importing mechanize, which
> downloads a page repeatedly. From time to time a BadStatusLine
> exception is raised. I'm unsure how to go about catching it.
Try adding
from httplib
Kent,
I'm not importing BadStatusLine. I'm only importing mechanize, which
downloads a page repeatedly. From time to time a BadStatusLine
exception is raised. I'm unsure how to go about catching it.
Thoughts?
-j
On Sun, Aug 10, 2008 at 1:54 PM, Kent Johnson <[EMAIL PROTECTED]> wrote:
> On Sat,
On Sat, Aug 9, 2008 at 12:28 PM, James <[EMAIL PROTECTED]> wrote:
> All,
>
> I'm having a rather strange problem that I'm hoping someone can shed
> some light on. I'm trying to catch a BadStatusLine exception raised by
> the httplib library.
> The error only happens once every blue moon, but to avo
All,
I'm having a rather strange problem that I'm hoping someone can shed
some light on. I'm trying to catch a BadStatusLine exception raised by
the httplib library. Below is the traceback that Python gives me when
something goes wrong with one of my programs:
-
Traceback (most recent ca