lib/dbf/reader.rb in dbf-0.4.3 vs lib/dbf/reader.rb in dbf-0.4.4
- old
+ new
@@ -111,10 +111,12 @@
end
private
def active_record?
- @data_file.read(1).unpack('H2').to_s == '20' rescue false
+ @data_file.read(1).unpack('H2').to_s == '20'
+ rescue
+ false
end
def build_record
record = Record.new
@fields.each do |field|