Skip to content

Commit

Permalink
Delete wav and track file if it exists
Browse files Browse the repository at this point in the history
  • Loading branch information
katsuma committed Apr 6, 2014
1 parent 377f712 commit 6083aa9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/musical
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ DVD.load(dvd_options) do |dvd|
track_count: chapters.size, track_count: chapters.size,
track_number: chapter.chapter_number, track_number: chapter.chapter_number,
) )
wav.delete!
track.delete!

rescue Itunes::Player::FileNotFoundError, Itunes::Player::EmptyFileError rescue Itunes::Player::FileNotFoundError, Itunes::Player::EmptyFileError
# We can ignore these errors. # We can ignore these errors.
ensure ensure
wav.delete! if wav
track.delete! if track

converting_progress_bar.increment converting_progress_bar.increment
end end
end end
Expand Down

0 comments on commit 6083aa9

Please sign in to comment.