From 975bca6883a3d5429237fea9b9856c4f167a7ac1 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Sun, 19 May 2024 22:46:17 +0300 Subject: [PATCH] Fixed docstrings --- slpkg/toml_errors.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/slpkg/toml_errors.py b/slpkg/toml_errors.py index 2ad3a1ba..7f594732 100644 --- a/slpkg/toml_errors.py +++ b/slpkg/toml_errors.py @@ -6,16 +6,13 @@ from pathlib import Path class TomlErrors: # pylint: disable=[R0903] - - """ - Raise an error message for toml files. - """ + """Raise an error message for toml files.""" def __init__(self): self.tool_name: str = 'slpkg' def raise_toml_error_message(self, error: str, toml_file: Path) -> None: - """ A general error message for .toml configs files. """ + """A general error message for .toml configs files.""" raise SystemExit(f"\n{self.tool_name}: Error: {error}: in the configuration\n" f"file '{toml_file}', edit the file and check for errors,\n" f"or if you have upgraded the '{self.tool_name}' maybe you need to run:\n"