Skip to content

Commit

Permalink
Raising earlier on no data
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Jan 12, 2016
1 parent ffe9a68 commit f434f3c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions panoramix/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down

0 comments on commit f434f3c

Please sign in to comment.