Skip to content

Commit

Permalink
fix(sqllab): SqlJsonExecutionContext.query null pointer (apache#16997)
Browse files Browse the repository at this point in the history
  • Loading branch information
serenajiang authored and Emmanuel Bavoux committed Nov 14, 2021
1 parent eddc1d5 commit d762c54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset/sqllab/sqllab_execution_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def create_query(self) -> Query:

def get_query_details(self) -> str:
try:
if self.query:
if hasattr(self, "query"):
if self.query.id:
return "query '{}' - '{}'".format(self.query.id, self.query.sql)
except DetachedInstanceError:
Expand Down

0 comments on commit d762c54

Please sign in to comment.