Skip to content
This repository has been archived by the owner on Jan 2, 2024. It is now read-only.

Commit

Permalink
add dots at the end of the error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
jrobinAV committed Nov 17, 2023
1 parent 89b0202 commit 9dbcd28
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/taipy/core/_repository/db/_sql_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion src/taipy/core/data/_abstract_sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion src/taipy/core/data/mongo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down
4 changes: 2 additions & 2 deletions src/taipy/core/data/sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/taipy/core/data/sql_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 9dbcd28

Please sign in to comment.