From 5ae1c5b5ac3b4773b7a0186aef27e299464ff5c5 Mon Sep 17 00:00:00 2001 From: Jason Date: Mon, 2 Oct 2023 10:30:06 -0400 Subject: [PATCH] Check for empty tables in zoom poll results (#897) Co-authored-by: Jason Walker --- parsons/zoom/zoom.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/parsons/zoom/zoom.py b/parsons/zoom/zoom.py index b9d9d4eed..7526d0192 100644 --- a/parsons/zoom/zoom.py +++ b/parsons/zoom/zoom.py @@ -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()))