diff --git a/pyproject.toml b/pyproject.toml index 6c900e1..8bb6aa1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,10 +1,4 @@ -[build-system] -requires = ["setuptools"] -build-backend = "setuptools.build_meta" - -[project] -name = "wallman" -version = "1.5.2.7" +version = "1.5.2.8" authors = [ {name = "Emma Nora Theuer", email = "wallman@entheuer.de"}, ] @@ -12,31 +6,3 @@ description = "A simple program to set dynamic wallpapers on standalone X11 Wind readme = "README.md" requires-python = ">=3.11" keywords = ["Desktop", "Wallpapers"] -license = {text = "MIT"} -classifiers = [ - "Programming Language :: Python :: 3.11", - "Programming Language :: Python :: 3.12", - "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", - "Operating System :: POSIX :: Linux", - "Operating System :: POSIX :: GNU Hurd", - "Operating System :: POSIX :: BSD", -] -dependencies = [ - "APScheduler", - "pillow", - "pystray", - 'importlib-metadata; python_version<"3.10"', -] - -[tool.setuptools.packages.find] -where = ["."] -include = ["wallman*"] -exclude = ["icons*", "packaging*", "DefaultFallbackWallpaper.jpg"] - -[project.urls] -Homepage = "https://git.entheuer.de/emma/Wallman" -Issues = "https://git.entheuer.de/emma/Wallman/issues" - -[project.scripts] -wallman = "wallman.main:main" diff --git a/wallman/wallman_lib.py b/wallman/wallman_lib.py index 1ee7e4f..9058596 100644 --- a/wallman/wallman_lib.py +++ b/wallman/wallman_lib.py @@ -28,7 +28,7 @@ class _Config: if not valid_changing_times: logger.critical("The amount of provided changing times does not match the amount of wallpapers per set, or the dictionary has not been found in the config file.") print("CRITICAL: The amount of provided changing times does not match the amount of wallpapers per set, or the dictionary has not been found in the config file.") - self.config_total_changing_times: int = len(self.config_changing_times) + raise ConfigError # Wallpaper sets valid_wallpaper_amount: bool = self._check_wallpaper_amount() if not valid_wallpaper_amount: @@ -173,6 +173,7 @@ class _Config: def _initialize_changing_times(self) -> bool: try: self.config_changing_times: Dict[str, str] = self.config_file["changing_times"] + self.config_total_changing_times: int = len(self.config_changing_times) logger.debug(f"Changing times are {self.config_changing_times}") except KeyError: logger.critical("No dictionary called changing_times has been found in the config file.")