Skip to content

Commit

Permalink
[hotfix] no data
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Jan 12, 2016
1 parent f434f3c commit 089a8c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions panoramix/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -916,8 +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 df is None or df.size == 0:
raise Exception("No data was returned.")

if not is_timeseries and 'timestamp' in df.columns:
del df['timestamp']
Expand Down

0 comments on commit 089a8c6

Please sign in to comment.