about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--gn3/db/case_attributes.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/gn3/db/case_attributes.py b/gn3/db/case_attributes.py
index 48afc0c..a81bc07 100644
--- a/gn3/db/case_attributes.py
+++ b/gn3/db/case_attributes.py
@@ -106,6 +106,8 @@ def __fetch_case_attrs_changes__(cursor, change_ids: tuple) -> list:
             causing a database error.
 
     """
+    if not change_ids:
+        return {}
     placeholders = ','.join(['%s'] * len(change_ids))
     cursor.execute(
         "SELECT editor, json_diff_data, time_stamp "