Re: [Tutor] Trapping HTTP Authentication Failure

2010-09-11 Thread Michael Powe
On Sat, Sep 11, 2010 at 10:48:13AM -0400, Michael Powe wrote: > On Sat, Sep 11, 2010 at 02:25:24PM +0200, Evert Rol wrote: > > > > > >> I'm not sure what you're exactly doing here, or what you're getting, > > >> but I did get curious and dug around urllib2.py. Apparently, there is > > >> a hardc

Re: [Tutor] Trapping HTTP Authentication Failure

2010-09-11 Thread Michael Powe
On Sat, Sep 11, 2010 at 02:25:24PM +0200, Evert Rol wrote: > > >> I'm not sure what you're exactly doing here, or what you're getting, > >> but I did get curious and dug around urllib2.py. Apparently, there is > >> a hardcoded 5 retries before the authentication really fails. So any > >> stack t

Re: [Tutor] Trapping HTTP Authentication Failure

2010-09-11 Thread Evert Rol
>> I'm not sure what you're exactly doing here, or what you're getting, >> but I did get curious and dug around urllib2.py. Apparently, there is >> a hardcoded 5 retries before the authentication really fails. So any >> stack trace would be the normal stack trace times 5. Not the 30 you >> mentio

Re: [Tutor] Trapping HTTP Authentication Failure

2010-09-11 Thread Michael Powe
On Sat, Sep 11, 2010 at 01:09:31PM +0200, Evert Rol wrote: > >>> My script to call a web service authenticates. > > > >> Sorry, but where is the (full) script? I missed an attachment or > >> (preferably) a link. > > > > Hello, > > > > Sorry, the verb of the sentence is "authenticates," as i

Re: [Tutor] Trapping HTTP Authentication Failure

2010-09-11 Thread Evert Rol
>>> My script to call a web service authenticates. > >> Sorry, but where is the (full) script? I missed an attachment or >> (preferably) a link. > > Hello, > > Sorry, the verb of the sentence is "authenticates," as in, "My script > ... authenticates." Sorry, misread that. Although code does

Re: [Tutor] Trapping HTTP Authentication Failure

2010-09-11 Thread Michael Powe
On Sat, Sep 11, 2010 at 01:28:26AM +0200, Evert Rol wrote: > > My script to call a web service authenticates. > Sorry, but where is the (full) script? I missed an attachment or (preferably) > a link. Hello, Sorry, the verb of the sentence is "authenticates," as in, "My script ... authentica

Re: [Tutor] Trapping HTTP Authentication Failure

2010-09-10 Thread Evert Rol
> My script to call a web service authenticates. Sorry, but where is the (full) script? I missed an attachment or (preferably) a link. > I would like to be > able to trap an exception if the authentication fails. The script > loops over a list of dates and I don't want it to retry for every

[Tutor] Trapping HTTP Authentication Failure

2010-09-10 Thread Michael Powe
Hello, My script to call a web service authenticates. I would like to be able to trap an exception if the authentication fails. The script loops over a list of dates and I don't want it to retry for every element in the list. This could take a long time and be very annoying when, after the long