michael-s-molina commented on code in PR #37817:
URL: https://github.com/apache/superset/pull/37817#discussion_r3011831252
##########
superset/commands/explore/get.py:
##########
@@ -124,7 +124,11 @@ def run(self) -> Optional[dict[str, Any]]: # noqa: C901
security_manager.raise_for_access(datasource=datasource)
viz_type = form_data.get("viz_type")
- if not viz_type and datasource and datasource.default_endpoint:
+ if (
+ not viz_type
+ and datasource
+ and getattr(datasource, "default_endpoint", None)
Review Comment:
Makes sense. Thanks for the context.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]