Skip to content

Commit 4379ce3

Browse files
committed
Merge pull request #98 from ecraft/master
Fixed InvalidByteSequenceError exception handling
2 parents f6e843b + cd792ad commit 4379ce3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/net/ber/core_ext/string.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ def raw_utf8_encoded
3333
rescue Encoding::UndefinedConversionError
3434
self
3535
rescue Encoding::ConverterNotFoundError
36-
return self
36+
self
37+
rescue Encoding::InvalidByteSequenceError
38+
self
3739
end
3840
else
3941
self

0 commit comments

Comments
 (0)