bugGNU FM - Bugs: bug #26484, improved error handling

 
 

bug #26484: improved error handling

Submitter:  Sebastian Krämer <kraymer>
Submitted:  Thu 07 May 2009 02:59:51 PM UTC
   
 
Category:  lastscrape Severity:  2 - Minor
Item Group:  None Status:  Confirmed
Privacy:  Public Assigned to:  odd_bloke
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 09 May 2009 01:12:40 PM UTC, comment #1: 

Fixed in SVN.

Daniel Watkins <odd_bloke>
Group Member
Thu 07 May 2009 02:59:51 PM UTC, original submission:  

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.

Sebastian Krämer <kraymer>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #18114:  wrong_name.out added by elopio (1KiB - application/octet-stream - this is the output when a non-existent user is passed as parameter.)
file #18113:  lastscrape.out added by elopio (1KiB - application/octet-stream - I think I'm also experiencing connection issues. It would be nice to have an automatic retry in this case.)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by elopio (Updated the item)
  • -email is unavailable- added by odd_bloke (Updated the item)
  • -email is unavailable- added by kraymer (Submitted the item)
  • -email is unavailable- added by kraymer (cc'ed like requested)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2009-05-09 odd_bloke Open/ClosedOpen Closed
    2009-05-07 elopio Attached File- Added wrong_name.out, #18114
    2009-05-07 elopio Attached File- Added lastscrape.out, #18113
    2009-05-07 odd_bloke Severity3 - Normal 2 - Minor
        StatusNone Confirmed
        Assigned toNone odd_bloke
    2009-05-07 kraymer Carbon-Copy- Added odd_bloke

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code