Fix new rubocop warnings

This commit is contained in:
Tom Hughes 2019-04-23 09:25:47 +01:00
parent 7354c8eb13
commit 9f57f60b87
18 changed files with 80 additions and 80 deletions

View file

@ -62,8 +62,8 @@ class Relation < ActiveRecord::Base
return Relation.from_xml_node(pt, create)
end
raise OSM::APIBadXMLError.new("node", xml, "XML doesn't contain an osm/relation element.")
rescue LibXML::XML::Error, ArgumentError => ex
raise OSM::APIBadXMLError.new("relation", xml, ex.message)
rescue LibXML::XML::Error, ArgumentError => e
raise OSM::APIBadXMLError.new("relation", xml, e.message)
end
def self.from_xml_node(pt, create = false)