Issue #197 invalid
Former user created an issue

when calling a specific sheet by name using the "get_sheet_by_name method, if the name passed is not a valid name no error is returned as if there is in fact a sheet with that incorrect name.

Comments (2)

  1. CharlieC

    This is the expected behaviour. What would you prefer? Raising a NameError? Client code would be much the same: either an exception is raised or None is returned. In Python .get() usually returns None when there is no match.

    Returns a worksheet by its name.
            Returns None if no worksheet has the name specified.
            :param name: the name of the worksheet to look for
            :type name: string
  2. Log in to comment