ptwobrussell / Mining-the-Social-Web

The official online compendium for Mining the Social Web (O'Reilly, 2011)
http://bit.ly/135dHfs
Other
1.21k stars 491 forks source link

Tightening up the error checking in the xfn scraping example #20

Closed gar closed 12 years ago

gar commented 12 years ago

I noticed (after fat-fingering a URL) that the error checking code in the xfn scraping example was referring to a non-existent local variable 'item'. Also, the program continued executing after I encountered the 'Failed to fetch' error, so I got exception output complaining that the 'page' variable was not defined.