1
0
Fork 0

Merge pull request #22 from blakink/master

Error handling
This commit is contained in:
Gregory Eremin 2013-07-14 22:49:26 -07:00
commit d66831ee8c
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ module MusicBrainz
def get_contents(url)
response = http.get(url)
{ body: response.body, status: response.status }
rescue
rescue Faraday::Error::ClientError
{ body: nil, status: 500 }
end
end