fzakaria/HypeScript — Issue #1: Script does not handle HTTPError.
Author: mikaelhm
Created: 2011-11-27 13:56:22+00:00
State: open

Hi thank you for the script!

Heres an improvement of you script

Suggested solution:
97c97,102
<	response = urllib2.urlopen(request)
---
>	try:
>	response = urllib2.urlopen(request)
>	except urllib2.HTTPError as e:
>	print "Error downloading song: ", song
>	print(e.code)
>	return False