Catch error 500 for quartier prioritaire
This commit is contained in:
parent
39a023b3e2
commit
83444ab54c
2 changed files with 13 additions and 0 deletions
|
@ -21,6 +21,9 @@ class CARTO::SGMAP::API
|
|||
url,
|
||||
verify_ssl: verify_ssl_mode,
|
||||
).post params[:geojson], content_type: 'application/json'
|
||||
|
||||
rescue RestClient::InternalServerError
|
||||
raise RestClient::ResourceNotFound
|
||||
end
|
||||
|
||||
def self.base_url
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue