Skip to content

Commit

Permalink
[hotfix] dashboard fails when a slice is missing its datasource
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Apr 5, 2017
1 parent 10773f9 commit b7f46eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset/views/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1620,7 +1620,7 @@ def dashboard(self, dashboard_id):
dash = qry.one()
datasources = {slc.datasource for slc in dash.slices}
for datasource in datasources:
if not self.datasource_access(datasource):
if datasource and not self.datasource_access(datasource):
flash(
__(get_datasource_access_error_msg(datasource.name)),
"danger")
Expand Down

0 comments on commit b7f46eb

Please sign in to comment.