From db97bc858a82ba97179cbc39374177439b320823 Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 8 Dec 2024 14:54:45 +0200 Subject: [PATCH] fixed issue 331 --- src/sempy_labs/_refresh_semantic_model.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sempy_labs/_refresh_semantic_model.py b/src/sempy_labs/_refresh_semantic_model.py index a61f8eb7..028090fe 100644 --- a/src/sempy_labs/_refresh_semantic_model.py +++ b/src/sempy_labs/_refresh_semantic_model.py @@ -169,7 +169,8 @@ def display_trace_logs(trace, partition_map, widget, title, stop=False): right_on="PartitionID", how="left", ) - _process_and_display_chart(df, title=title, widget=widget) + if not df.empty: + _process_and_display_chart(df, title=title, widget=widget) if stop: df.drop(["Object Name", "PartitionID"], axis=1, inplace=True) df.rename(columns={"TableName": "Table Name"}, inplace=True)