[twill] Debugging twill

sureshvv suresh_vv at yahoo.com
Tue Nov 22 04:24:58 PST 2005


Titus Brown wrote:
> 
> suresh, I've also fixed something to do with your error message.  It's
> still an error, but it may be more illuminating...

Thanks, Titus.

I was able to make it work by patching _mech_open() method in _mechanize.py as 
follows:

Around line 281, change

<       self._response = UserAgent.open(self, self.request, data)

to

 >       try:
 >           self._response = UserAgent.open(self, self.request, data)
 >       except urllib2.HTTPError, e:
 >           self._response = e

Do you think this is correct?

Suresh




More information about the twill mailing list