Skip to content

Commit

Permalink
fix(translations): don't use f-strings as message strings (#27894)
Browse files Browse the repository at this point in the history
See python-babel/babel#715 for more details.
  • Loading branch information
lscheibel committed Apr 15, 2024
1 parent 40e77be commit d8ef465
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions superset/sql_parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -765,8 +765,8 @@ def _extract_tables_from_sql(self) -> set[Table]:
SupersetError(
error_type=SupersetErrorType.QUERY_SECURITY_ACCESS_ERROR,
message=__(
f"You may have an error in your SQL statement. {message}"
),
"You may have an error in your SQL statement. {message}"
).format(message=message),
level=ErrorLevel.ERROR,
)
) from ex
Expand Down

0 comments on commit d8ef465

Please sign in to comment.