fix fromxlsx with read_only crashes
@@ -67,7 +67,6 @@ class XLSXView(Table):
ws = wb[wb.sheetnames[self.sheet]]
else:
ws = wb[str(self.sheet)]
-
if self.range_string is not None:
rows = ws[self.range_string]
else:
@@ -75,10 +74,8 @@ class XLSXView(Table):
min_col=self.min_col,
max_row=self.max_row,
max_col=self.max_col)
-
for row in rows:
yield tuple(cell.value for cell in row)
-
try:
wb._archive.close()
except AttributeError:
