1
0
Fork 0

Do not rescue all errors

This commit is contained in:
Savater Sebastien 2013-07-11 22:51:50 +04:00
parent 1dd1714448
commit 344dfdbe5c
1 changed files with 0 additions and 2 deletions

View File

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