lastfm: catch all errors when connecting
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Tue, 24 Feb 2009 20:48:34 +0000 (21:48 +0100)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 25 Feb 2009 20:41:26 +0000 (21:41 +0100)
commitb840a254c1ca755123d4b02907ee27c08a6a4ec9
treebdf27a62f52f00c79a1e9fd6be86528afc55836a
parent4e4a5b8a91b3a5737773aab0ed7e67180f01a982
lastfm: catch all errors when connecting

Since httputil.get_response() can raise exceptions, catch them into an
appropriate block. Turn a missing response body into a runtime error to
handle this error conditions consistently with other exceptions.
data/rbot/plugins/lastfm.rb