move-coop / parsons

A python library of connectors for the progressive community.
https://www.parsonsproject.org/
Other
257 stars 125 forks source link

Check for empty tables in zoom poll results #897

Closed Jason94 closed 9 months ago

Jason94 commented 9 months ago

The new Zoom poll code fails when trying to get results for a meeting/webinar that does not return poll data. This commit checks that there is poll data before trying to apply the table transformations.

Traceback (most recent call last):
  File "parsons\parsons\zoom\zoom.py", line 509, in get_meeting_poll_results
    return self.__process_poll_results(tbl=tbl)
  File "parsons\parsons\zoom\zoom.py", line 159, in __process_poll_results
    tbl = tbl.unpack_nested_columns_as_rows(
  File "parsons\parsons\etl\etl.py", line 576, in unpack_nested_columns_as_rows
    ignore_cols.remove(column)
ValueError: list.remove(x): x not in list