diff --git a/src/sempy_labs/_refresh_semantic_model.py b/src/sempy_labs/_refresh_semantic_model.py index a61f8eb..028090f 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)