Shut up libxml's "Must specify a string with one or more characters" error on relatio...
[rails.git] / app / models / relation.rb
index 64af4ecc1eb9d59eff27e8b46d292f3a2aa560f6..c3769b14d68e2a126d2f54002e746127bc61d80d 100644 (file)
@@ -33,7 +33,7 @@ class Relation < ActiveRecord::Base
       doc.find('//osm/relation').each do |pt|
         return Relation.from_xml_node(pt, create)
       end
-    rescue LibXML::XML::Error => ex
+    rescue LibXML::XML::Error, ArgumentError => ex
       raise OSM::APIBadXMLError.new("relation", xml, ex.message)
     end
   end