Do not rescue all errors
This commit is contained in:
parent
1dd1714448
commit
344dfdbe5c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue