diff options
Diffstat (limited to 'src/tablib/formats/_xls.py')
| -rw-r--r-- | src/tablib/formats/_xls.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tablib/formats/_xls.py b/src/tablib/formats/_xls.py index 3fc94af..0533476 100644 --- a/src/tablib/formats/_xls.py +++ b/src/tablib/formats/_xls.py @@ -76,7 +76,10 @@ def import_set(dset, in_stream, headers=True): if (i == 0) and (headers): dset.headers = sheet.row_values(0) else: - dset.append(sheet.row_values(i)) + dset.append([ + val if typ != xlrd.XL_CELL_ERROR else xlrd.error_text_from_code[val] + for val, typ in zip(sheet.row_values(i), sheet.row_types(i)) + ]) def import_book(dbook, in_stream, headers=True): |
