You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by vi...@apache.org on 2021/09/09 11:29:59 UTC
[superset] branch master updated: fix: pybabel extract fails
(#16629)
This is an automated email from the ASF dual-hosted git repository.
villebro pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push:
new d0f69f2 fix: pybabel extract fails (#16629)
d0f69f2 is described below
commit d0f69f2e5c5150ce74b645ac62e824337b1f7448
Author: Shaoqing Hu <sh...@happyelements.com>
AuthorDate: Thu Sep 9 19:28:25 2021 +0800
fix: pybabel extract fails (#16629)
* fix pybabel extract fails
* fix black
* trigger GitHub actions
---
superset/sql_lab.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/superset/sql_lab.py b/superset/sql_lab.py
index d392e6c..deb7a09 100644
--- a/superset/sql_lab.py
+++ b/superset/sql_lab.py
@@ -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,