[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Librefm-bugs] [bug #26484] improved error handling
From: |
Sebastian Krämer |
Subject: |
[Librefm-bugs] [bug #26484] improved error handling |
Date: |
Thu, 07 May 2009 14:59:53 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.10) Gecko/2009042708 Fedora/3.0.10-1.fc10 Firefox/3.0.10 |
URL:
<http://savannah.nongnu.org/bugs/?26484>
Summary: improved error handling
Project: libre.fm
Submitted by: kraymer
Submitted on: Do 07 Mai 2009 14:59:51 GMT
Category: lastscrape
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
The lastscrape script died two times when I tried to import my last.fm data.
It appears that that was due to last.fm's server responses because it
succeeded in the end.
The first attempt quit with a "connection refused" error after less than two
minutes. (the traceback isn't in my terminal's history any more..)
The second attempt died with the following:
...
Talvin Singh Light 2007-01-07T18:02:55Z
dZihan & Kamien Streets Of Istanbul 2007-01-07T17:57:48Z
Aromabar sand&stones&bricks&rocks 2007-01-07T17:53:26Z
Traceback (most recent call last):
File "./lastscrape.py", line 70, in <module>
sys.exit(main(*sys.argv))
File "./lastscrape.py", line 61, in main
for artist, track, timestamp in fetch_tracks(args[1]):
File "./lastscrape.py", line 47, in fetch_tracks
for artist, track, timestamp in tracks:
File "./lastscrape.py", line 15, in parse_page
for row in soup.find('table', 'candyStriped tracklist').findAll('tr'):
AttributeError: 'NoneType' object has no attribute 'findAll'
It was agreed on IRC that it's probably due to the lastfm servers but for
usability it would be nice to have an improvement in ways of error reporting
and error resilience.
Thanks.
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?26484>
_______________________________________________
Nachricht geschickt von/durch Savannah
http://savannah.nongnu.org/
- [Librefm-bugs] [bug #26484] improved error handling,
Sebastian Krämer <=