Shut up libxml's "Must specify a string with one or more characters" error on relatio...
[rails.git] / app / models / way.rb
index dbc1197a9e039ec003b1e623e92bdf97e9c1faf2..88bbaf6c59669229dfb221659389cf1605442d22 100644 (file)
@@ -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