diff --git a/examples/baseline_by_relevance.py b/examples/baseline_by_relevance.py
index f927cad..bc8ade0 100644
--- a/examples/baseline_by_relevance.py
+++ b/examples/baseline_by_relevance.py
@@ -37,8 +37,12 @@ def main():
for item in result:
# print(item)
tuple_items = item.split(", ")
- baseline_components += f"""
- """
+ try:
+ baseline_components += f"""
+ """
+ except IndexError:
+ print("ERROR: a component was missing a key item.")
+ continue
# print(baseline_components)