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

 
 

bug #26484: improved error handling

Submitted by:  Sebastian Krämer <kraymer>
Submitted on:  Thu 07 May 2009 02:59:51 PM UTC  
 
Category: lastscrapeSeverity: 2 - Minor
Item Group: NoneStatus: Confirmed
Privacy: PublicAssigned to: Daniel Watkins <odd_bloke>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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

Fixed in SVN.

Daniel Watkins <odd_bloke>
Project MemberIn charge of this item.
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 File(s):
   
   
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
  • -unavailable- added by elopio (Updated the item)
  • -unavailable- added by odd_bloke (Updated the item)
  • -unavailable- added by kraymer (Submitted the item)
  • -unavailable- added by kraymer (cc'ed like requested)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 09 May 2009 01:12:40 PM UTCodd_blokeOpen/ClosedOpen=>Closed
    Thu 07 May 2009 05:45:29 PM UTCelopioAttached File-=>Added wrong_name.out, #18114
    Thu 07 May 2009 04:46:15 PM UTCelopioAttached File-=>Added lastscrape.out, #18113
    Thu 07 May 2009 04:34:10 PM UTCodd_blokeSeverity3 - Normal=>2 - Minor
      StatusNone=>Confirmed
      Assigned toNone=>odd_bloke
    Thu 07 May 2009 02:59:51 PM UTCkraymerCarbon-Copy-=>Added odd_bloke

    Back to the top


    Powered by Savane 3.1-cleanup1