fix: pybabel extract fails (#16629)

* fix pybabel extract fails

* fix black

* trigger GitHub actions
This commit is contained in:
Shaoqing Hu 2021-09-09 19:28:25 +08:00 committed by GitHub
parent 6465ee7dbd
commit d0f69f2e5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -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,