williaster commented on a change in pull request #7888: [sqla] Adding check for
invalid filter columns
URL:
https://github.com/apache/incubator-superset/pull/7888#discussion_r304671600
##########
File path: superset/connectors/sqla/models.py
##########
@@ -649,7 +649,7 @@ def get_sqla_query( # sqla
elif m in metrics_dict:
metrics_exprs.append(metrics_dict.get(m).get_sqla_col())
else:
- raise Exception(_("Metric '{}' is not valid".format(m)))
+ raise Exception(_(f"Metric '{m}' is not valid"))
Review comment:
Ditto re the error message here? `Metric '{m}' does not exist` / `... not
found`?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]