commit
d66831ee8c
|
@ -4,7 +4,7 @@ module MusicBrainz
|
||||||
def get_contents(url)
|
def get_contents(url)
|
||||||
response = http.get(url)
|
response = http.get(url)
|
||||||
{ body: response.body, status: response.status }
|
{ body: response.body, status: response.status }
|
||||||
rescue
|
rescue Faraday::Error::ClientError
|
||||||
{ body: nil, status: 500 }
|
{ body: nil, status: 500 }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue