Skip to content

Commit

Permalink
Don't spew frightening warnings needlessly
Browse files Browse the repository at this point in the history
  • Loading branch information
wdenton committed Jan 6, 2012
1 parent f6a92ce commit 4c5bbb3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion extract-tpl-ddc-from-090.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
call_number.gsub!(/[A-Za-z\/].*/, '') # Remove any letters and slashes (/) call_number.gsub!(/[A-Za-z\/].*/, '') # Remove any letters and slashes (/)
puts call_number if call_number.to_i < 1000 && call_number.length > 0 puts call_number if call_number.to_i < 1000 && call_number.length > 0
rescue Exception => e rescue Exception => e
STDERR.puts "(Error #{e}) #{line}" # Uncomment to see the call numbers that aren't Dewey
# STDERR.puts "(Error #{e}) #{line}"
end end
end end

0 comments on commit 4c5bbb3

Please sign in to comment.