From 4bbe2b9774f1313dd0751ef6d85f9a3d995c810f Mon Sep 17 00:00:00 2001 From: Alex Strick van Linschoten Date: Thu, 7 Nov 2024 16:03:41 +0100 Subject: [PATCH] catch bug (#149) --- llm-complete-guide/steps/populate_index.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/llm-complete-guide/steps/populate_index.py b/llm-complete-guide/steps/populate_index.py index 836c15a5..2772ca04 100644 --- a/llm-complete-guide/steps/populate_index.py +++ b/llm-complete-guide/steps/populate_index.py @@ -458,6 +458,9 @@ def draw_bar_chart( Returns: None """ + if label is None: + label = "" + max_value = max(data) bar_width = width // len(data)