We are currently using the max_row field from openpyxl to guard against oversized spreadsheets. In some cases the field is unset and will raise a unhandled exception. Adding a default value for the max_row check would invalidate the checks, therefore we should handle the scenario where the field is unset by instead falling back to manually counting the rows.
We are currently using the
max_rowfield from openpyxl to guard against oversized spreadsheets. In some cases the field is unset and will raise a unhandled exception. Adding a default value for themax_rowcheck would invalidate the checks, therefore we should handle the scenario where the field is unset by instead falling back to manually counting the rows.