don't rescue tings that really should not happen
This commit is contained in:
parent
c0066eee32
commit
48bb7a8343
1 changed files with 6 additions and 6 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
# $Dwarf: yenc.rb,v 1.12 2004/10/18 18:35:39 ward Exp $
|
# $Dwarf: yenc.rb,v 1.13 2005/01/31 14:08:33 ward Exp $
|
||||||
# $Source$
|
# $Source$
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
@ -64,12 +64,12 @@ def _ydecode_line(line)
|
||||||
line[i] -= 64
|
line[i] -= 64
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
begin
|
# begin
|
||||||
ostr << @ymap[line[i].to_i]
|
ostr << @ymap[line[i].to_i]
|
||||||
rescue TypeError
|
# rescue TypeError
|
||||||
puts "this should not happen!!!"
|
# puts "this should not happen!!!"
|
||||||
puts "line[i] contents: '#{line[i]}'\n"
|
# puts "line[i] contents: '#{line[i]}'\n"
|
||||||
end
|
# end
|
||||||
i += 1
|
i += 1
|
||||||
end
|
end
|
||||||
return ostr
|
return ostr
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue