diff --git a/panoramix/models.py b/panoramix/models.py index 165e70e626e28..24e94518ac3cb 100644 --- a/panoramix/models.py +++ b/panoramix/models.py @@ -916,6 +916,8 @@ def query( client.groupby(**qry) query_str += json.dumps(client.query_dict, indent=2) df = client.export_pandas() + if not df: + raise Exception("No data") if not is_timeseries and 'timestamp' in df.columns: del df['timestamp']