List Info

Thread: Venus: Tiny patch to stop crashing when encountering unexpected http response codes




Venus: Tiny patch to stop crashing when encountering unexpected http response codes
user name
2006-09-07 09:41:10
I had a few feeds which use http authentication, which
triggered a
small error in spider.py.



=== modified file 'planet/spider.py'
--- planet/spider.py
+++ planet/spider.py
 -191,7
+191,7 
     elif data.status == 500:
        data.feed['planet_message'] = "internal
server error"
     elif data.status >= 400:
-       data.feed['planet_message'] = "http status
%s" % status
+       data.feed['planet_message'] = "http status
%s" % data.status

     # perform user configured scrub operations on the data
     scrub(feed, data)


-- 
Cheers

Koz
-- 
devel mailing list
devellists.planetplanet.org

http://lists.planetplanet.org/mailman/listinfo/devel
Venus: Tiny patch to stop crashing when encountering unexpected http response codes
user name
2006-09-07 12:08:23
Michael Koziarski wrote:
> I had a few feeds which use http authentication, which
triggered a
> small error in spider.py.

Fixed, thanks!

- Sam Ruby
-- 
devel mailing list
devellists.planetplanet.org

http://lists.planetplanet.org/mailman/listinfo/devel
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )