diff --git a/src/taipy/core/_repository/db/_sql_connection.py b/src/taipy/core/_repository/db/_sql_connection.py index f01c7e04..d356da65 100644 --- a/src/taipy/core/_repository/db/_sql_connection.py +++ b/src/taipy/core/_repository/db/_sql_connection.py @@ -76,7 +76,7 @@ def _build_connection() -> Connection: try: db_location = properties["db_location"] except KeyError: - raise MissingRequiredProperty("Missing property db_location") + raise MissingRequiredProperty("Missing property db_location.") return __build_connection(db_location) diff --git a/src/taipy/core/data/_abstract_sql.py b/src/taipy/core/data/_abstract_sql.py index 668ff72f..b3015f73 100644 --- a/src/taipy/core/data/_abstract_sql.py +++ b/src/taipy/core/data/_abstract_sql.py @@ -152,7 +152,7 @@ def _check_required_properties(self, properties: Dict): if missing := set(required) - set(properties.keys()): raise MissingRequiredProperty( - f"The following properties " f"{', '.join(x for x in missing)} were not informed and are required" + f"The following properties " f"{', '.join(x for x in missing)} were not informed and are required." ) def _get_engine(self): diff --git a/src/taipy/core/data/mongo.py b/src/taipy/core/data/mongo.py index 87f4d60b..c5abd030 100644 --- a/src/taipy/core/data/mongo.py +++ b/src/taipy/core/data/mongo.py @@ -104,7 +104,7 @@ def __init__( required = self._REQUIRED_PROPERTIES if missing := set(required) - set(properties.keys()): raise MissingRequiredProperty( - f"The following properties " f"{', '.join(x for x in missing)} were not informed and are required" + f"The following properties " f"{', '.join(x for x in missing)} were not informed and are required." ) self._check_custom_document(properties[self._CUSTOM_DOCUMENT_PROPERTY]) diff --git a/src/taipy/core/data/sql.py b/src/taipy/core/data/sql.py index 63e79618..0c103dfb 100644 --- a/src/taipy/core/data/sql.py +++ b/src/taipy/core/data/sql.py @@ -95,9 +95,9 @@ def __init__( if properties is None: properties = {} if properties.get(self.__READ_QUERY_KEY) is None: - raise MissingRequiredProperty(f"Property {self.__READ_QUERY_KEY} is not informed and is required") + raise MissingRequiredProperty(f"Property {self.__READ_QUERY_KEY} is not informed and is required.") if properties.get(self._WRITE_QUERY_BUILDER_KEY) is None: - raise MissingRequiredProperty(f"Property {self._WRITE_QUERY_BUILDER_KEY} is not informed and is required") + raise MissingRequiredProperty(f"Property {self._WRITE_QUERY_BUILDER_KEY} is not informed and is required.") super().__init__( config_id, diff --git a/src/taipy/core/data/sql_table.py b/src/taipy/core/data/sql_table.py index 0c06c90c..07e4c7af 100644 --- a/src/taipy/core/data/sql_table.py +++ b/src/taipy/core/data/sql_table.py @@ -91,7 +91,7 @@ def __init__( if properties is None: properties = {} if properties.get(self.__TABLE_KEY) is None: - raise MissingRequiredProperty(f"Property {self.__TABLE_KEY} is not informed and is required") + raise MissingRequiredProperty(f"Property {self.__TABLE_KEY} is not informed and is required.") super().__init__( config_id, scope,