X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/c8ee1351049ef1bb4d7b50d071b2a96154266d1d..6167bb650286e30cf9e1beed107b794c03bb3909:/app/models/way.rb diff --git a/app/models/way.rb b/app/models/way.rb index dbc1197a9..88bbaf6c5 100644 --- a/app/models/way.rb +++ b/app/models/way.rb @@ -33,7 +33,7 @@ class Way < ActiveRecord::Base doc.find('//osm/way').each do |pt| return Way.from_xml_node(pt, create) end - rescue LibXML::XML::Error => ex + rescue LibXML::XML::Error, ArgumentError => ex raise OSM::APIBadXMLError.new("way", xml, ex.message) end end