You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by er...@apache.org on 2022/05/02 16:24:57 UTC

[superset] branch master updated: Fix issue probably-meant-fstring found at https://codereview.doctor (#19826)

This is an automated email from the ASF dual-hosted git repository.

erikrit 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 50dc7af583  Fix issue probably-meant-fstring found at https://codereview.doctor (#19826)
50dc7af583 is described below

commit 50dc7af58359c5f023544b8968085d086f07ca64
Author: code-review-doctor <72...@users.noreply.github.com>
AuthorDate: Mon May 2 17:24:48 2022 +0100

     Fix issue probably-meant-fstring found at https://codereview.doctor (#19826)
---
 superset/db_engine_specs/presto.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/superset/db_engine_specs/presto.py b/superset/db_engine_specs/presto.py
index 645dd32d26..bd7424b0de 100644
--- a/superset/db_engine_specs/presto.py
+++ b/superset/db_engine_specs/presto.py
@@ -1198,7 +1198,7 @@ class PrestoEngineSpec(BaseEngineSpec):  # pylint: disable=too-many-public-metho
         part_fields = indexes[0]["column_names"]
         for k in kwargs.keys():  # pylint: disable=consider-iterating-dictionary
             if k not in k in part_fields:  # pylint: disable=comparison-with-itself
-                msg = "Field [{k}] is not part of the portioning key"
+                msg = f"Field [{k}] is not part of the portioning key"
                 raise SupersetTemplateException(msg)
         if len(kwargs.keys()) != len(part_fields) - 1:
             msg = (