Skip to content

Commit

Permalink
fix pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
hughhhh committed Oct 12, 2022
1 parent 67e9838 commit 131308c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion superset/sqllab/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ def run( # pylint: disable=too-many-statements,useless-suppression
) from ex
raise ex
except Exception as ex:
logger.exception("Query %d: %s", query.id, type(ex))
query_id = query.id if query else None
logger.exception("Query %d: %s", query_id, type(ex))
raise SqlLabException(self._execution_context, exception=ex) from ex

def _try_get_existing_query(self) -> Optional[Query]:
Expand Down

0 comments on commit 131308c

Please sign in to comment.