Permalink
Browse files

Delete wav and track file if it exists

  • Loading branch information...
1 parent 377f712 commit 6083aa9465a5d7d508dec27b0ad30d9ed4029d4f @katsuma committed Apr 6, 2014
Showing with 3 additions and 3 deletions.
  1. +3 −3 bin/musical
View
@@ -44,12 +44,12 @@ DVD.load(dvd_options) do |dvd|
track_count: chapters.size,
track_number: chapter.chapter_number,
)
- wav.delete!
- track.delete!
-
rescue Itunes::Player::FileNotFoundError, Itunes::Player::EmptyFileError
# We can ignore these errors.
ensure
+ wav.delete! if wav
+ track.delete! if track
+
converting_progress_bar.increment
end
end

0 comments on commit 6083aa9

Please sign in to comment.