Issue #4 resolved

Iterating over the records in a table with a missing memo file throws BadDataError

Lucas Taylor
repo owner created an issue

Opening a table with ignore_memo=True and iterating over records throws an error if memo fields exist:

>>> tbl = dbf.VfpTable(filename, codepage, ignore_memos=True)
>>> tbl.open()
>>> recs = ['%s' % (rec,) for rec in tbl]

Traceback (most recent call last):
  File "./dbf_preview.py", line 63, in run
  File "./dbf.py", line 1796, in __str__
  File "./dbf.py", line 1732, in __getitem__
  File "./dbf.py", line 1701, in __getattr__
  File "./dbf.py", line 1885, in _retrieve_field_value
  File "./dbf.py", line 2595, in retrieve_memo
AttributeError: 'NoneType' object has no attribute 'get_memo'