Skip to content
This repository has been archived by the owner on Oct 12, 2018. It is now read-only.

Commit

Permalink
Warn, don't die on unknown slug
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiecobbett committed Oct 1, 2012
1 parent f95077d commit 54e8071
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/tasks/move_to_new_sections.rake
Expand Up @@ -69,8 +69,8 @@ module NewSectionMigration
clean_slug = clean_slug(row[1])
a = Artefact.where(slug: clean_slug).first
if a.nil?
puts row
raise "Stop! Artefact '#{clean_slug}' could not be found."
puts "Had to ignore Artefact '#{clean_slug}' - could not be found. It's probably been renamed."
next
end
row.shift # remove the artefact title
row.shift # remove the artefact slug
Expand Down

0 comments on commit 54e8071

Please sign in to comment.