Re: [Tutor] Unable to catch exception

2008-08-13 Thread Lie Ryan
> 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

Re: [Tutor] Unable to catch exception

2008-08-10 Thread Kent Johnson
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

Re: [Tutor] Unable to catch exception

2008-08-10 Thread James
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,

Re: [Tutor] Unable to catch exception

2008-08-10 Thread Kent Johnson
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

[Tutor] Unable to catch exception

2008-08-09 Thread James
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