Skip to content

Commit

Permalink
fix: pybabel extract fails (#16629)
Browse files Browse the repository at this point in the history
* fix pybabel extract fails

* fix black

* trigger GitHub actions
  • Loading branch information
hushaoqing authored Sep 9, 2021
1 parent 6465ee7 commit d0f69f2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions superset/sql_lab.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,9 @@ def execute_sql_statement(
raise SupersetErrorException(
SupersetError(
message=__(
f"The query was killed after {SQLLAB_TIMEOUT} seconds. It might "
"be too complex, or the database might be under heavy load."
"The query was killed after %(sqllab_timeout)s seconds. It might "
"be too complex, or the database might be under heavy load.",
sqllab_timeout=SQLLAB_TIMEOUT,
),
error_type=SupersetErrorType.SQLLAB_TIMEOUT_ERROR,
level=ErrorLevel.ERROR,
Expand Down

0 comments on commit d0f69f2

Please sign in to comment.