iter_worksheet, UnboundLocalError: local variable 'row' referenced before assignment

Issue #407 duplicate
created an issue

This section of code in, (function _get_row), references the variable "row" without it having been assigned:

    if max_col is not None:
        while col_counter <= max_col:
            yield ReadOnlyCell(self, row, None, None)
            col_counter += 1

Introduced apparently in revision 2.1.4.

I encountered it when loading a workbook with use_iterators=True.

Comments (4)

  1. Log in to comment