Skip to content

Commit

Permalink
Don't raise APIAlreadyDeletedError when deleting with if-unused
Browse files Browse the repository at this point in the history
  • Loading branch information
bhousel committed Dec 16, 2014
1 parent 4e6fe81 commit 068471f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/diff_reader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def commit
if action_attributes["if-unused"]
begin
old.delete_with_history!(new, @changeset.user)
rescue OSM::APIPreconditionFailedError => ex
rescue OSM::APIAlreadyDeletedError, OSM::APIPreconditionFailedError => ex
xml_result["new_id"] = old.id.to_s
xml_result["new_version"] = old.version.to_s
end
Expand Down

0 comments on commit 068471f

Please sign in to comment.