eschutho commented on code in PR #23004:
URL: https://github.com/apache/superset/pull/23004#discussion_r1097998034
##########
superset/models/slice.py:
##########
@@ -160,11 +160,12 @@ def datasource_link(self) -> Optional[Markup]:
@renders("datasource_url")
def datasource_url(self) -> Optional[str]:
- # pylint: disable=no-member
if self.table:
return self.table.explore_url
- datasource = self.datasource
- return datasource.explore_url if datasource else None
+ try:
+ return self.datasource.explore_url if self.datasource else None
Review Comment:
```suggestion
return self.datasource.explore_url
```
--
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]