KingNish commited on
Commit
8a16657
·
verified ·
1 Parent(s): a1654f3

Excel none issue solved

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -65,7 +65,8 @@ def read_document(file):
65
  for sheet in wb.worksheets:
66
  for row in sheet.rows:
67
  for cell in row:
68
- content += str(cell.value) + ' '
 
69
  return content
70
  except Exception as e:
71
  return f"Error reading XLSX: {e}"
 
65
  for sheet in wb.worksheets:
66
  for row in sheet.rows:
67
  for cell in row:
68
+ if cell.value is not None:
69
+ content += str(cell.value) + ' '
70
  return content
71
  except Exception as e:
72
  return f"Error reading XLSX: {e}"