diff --git a/overpass/overpass_logical_history.rb b/overpass/overpass_logical_history.rb index 5d53f4d..6e34878 100644 --- a/overpass/overpass_logical_history.rb +++ b/overpass/overpass_logical_history.rb @@ -68,7 +68,7 @@ def self.fetch_osm_at_data(bbox, date_start, date_end) h = Hash.from_xml(response.body) old = [] new = [] - h['osm']['action'].collect{ |action| + h.dig('osm', 'action')&.collect{ |action| case action['type'] when 'delete' old << action['old']