Skip to content

Commit

Permalink
Check for empty tables in zoom poll results (#897)
Browse files Browse the repository at this point in the history
Co-authored-by: Jason Walker <[email protected]>
  • Loading branch information
Jason94 and Jason Walker authored Oct 2, 2023
1 parent 7ac73e2 commit 5ae1c5b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions parsons/zoom/zoom.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ def __process_poll_results(self, tbl: Table) -> Table:
`Returns`:
Parsons Table
"""
if tbl.num_rows == 0:
return tbl

# Add surrogate key
tbl.add_column("poll_taker_id", lambda _: str(uuid.uuid4()))
Expand Down

0 comments on commit 5ae1c5b

Please sign in to comment.