[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Librefm-bugs] [bug #26693] lastscrape.py - urllib fails to open page so
From: |
Petr Viktorin |
Subject: |
[Librefm-bugs] [bug #26693] lastscrape.py - urllib fails to open page sometimes |
Date: |
Wed, 27 May 2009 09:11:46 +0000 |
User-agent: |
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB6; .NET CLR 1.1.4322; .NET CLR 2.0.50727) |
URL:
<http://savannah.nongnu.org/bugs/?26693>
Summary: lastscrape.py - urllib fails to open page sometimes
Project: libre.fm
Submitted by: encukou
Submitted on: Wed May 27 09:11:45 2009
Category: None
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
As reported on the mailing list by Henrique
[http://lists.autonomo.us/pipermail/libre-fm/2009-May/000682.html]:
Traceback (most recent call last):
File "/home/henriquemaia/Desktop/lastscrape-beta/gui.py", line 339, in run
sleep_func=self.sleep):
File "/home/henriquemaia/Desktop/lastscrape-beta/lastscrape.py", line 80, in
fetch_tracks
for artist, track, timestamp in tracks:
File "/home/henriquemaia/Desktop/lastscrape-beta/lastscrape.py", line 32, in
parse_page
soup = BeautifulSoup(urllib2.urlopen(page),
File "/usr/lib/python2.6/urllib2.py", line 124, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib/python2.6/urllib2.py", line 389, in open
response = meth(req, response)
File "/usr/lib/python2.6/urllib2.py", line 502, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.6/urllib2.py", line 421, in error
result = self._call_chain(*args)
File "/usr/lib/python2.6/urllib2.py", line 361, in _call_chain
result = func(*args)
File "/usr/lib/python2.6/urllib2.py", line 597, in http_error_302
return self.parent.open(new)
File "/usr/lib/python2.6/urllib2.py", line 383, in open
response = self._open(req, data)
File "/usr/lib/python2.6/urllib2.py", line 401, in _open
'_open', req)
File "/usr/lib/python2.6/urllib2.py", line 361, in _call_chain
result = func(*args)
File "/usr/lib/python2.6/urllib2.py", line 1130, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "/usr/lib/python2.6/urllib2.py", line 1103, in do_open
r = h.getresponse()
File "/usr/lib/python2.6/httplib.py", line 950, in getresponse
response.begin()
File "/usr/lib/python2.6/httplib.py", line 390, in begin
version, status, reason = self._read_status()
File "/usr/lib/python2.6/httplib.py", line 354, in _read_status
raise BadStatusLine(line)
BadStatusLine
I'll investigate this with Wireshark & try to fix.
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?26693>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Librefm-bugs] [bug #26693] lastscrape.py - urllib fails to open page sometimes,
Petr Viktorin <=