Do not silence error message for query. (#2396)

This commit is contained in:
Bogdan 2017-03-13 18:23:53 -07:00 committed by GitHub
parent 6160a3fdff
commit 562b4f0415

View File

@ -119,7 +119,8 @@ class BaseViz(object):
# parsing logic.
if df is None or df.empty:
self.status = utils.QueryStatus.FAILED
self.error_message = "No data."
if not self.error_message:
self.error_message = "No data."
return pd.DataFrame()
else:
if DTTM_ALIAS in df.columns: