From 74a275b4235d7062212f556e7bb11bfc6524ae91 Mon Sep 17 00:00:00 2001 From: Emma Nora Theuer Date: Sat, 8 Jun 2024 06:36:12 +0200 Subject: [PATCH] Fixed typo --- src/wallman_lib.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/wallman_lib.py b/src/wallman_lib.py index b7b6c39..4864f21 100644 --- a/src/wallman_lib.py +++ b/src/wallman_lib.py @@ -166,13 +166,13 @@ class WallpaperLogic(_ConfigLib): def _check_system_exitcode(self, code) -> bool: if code != 0: try: - self.set_fallback_wallpaper() - logger.error(f"The wallpaper {self.wallpaper_list[time_range]} has not been found, the fallback wallpaper has been set. Future wallpapers will still attempted to be set.") - print(f"ERROR: The wallpaper {self.wallpaper_list[time_range]} has not been found, the fallback wallpaper has been set. Future wallpapers will still attempted to be set.") + self._set_fallback_wallpaper() + logger.error("The wallpaper attempted to be set has not been found, the fallback wallpaper has been set. Future wallpapers will still attempted to be set.") + print("ERROR: The wallpaper attempted to be set has not been found, the fallback wallpaper has been set. Future wallpapers will still attempted to be set.") return False except ConfigError: - logger.error(f"The wallpaper {self.wallpaper_list[time_range]} has not been found and no fallback wallpaper has been set. Future wallpapers will still attempted to be set.") - print(f"ERROR: The wallpaper {self.wallpaper_list[time_range]} has not been found and no fallback wallpaper has been set. Future wallpapers will still attempted to be set.") + logger.error("The wallpaper attempted to be set has not been found and no fallback wallpaper has been set. Future wallpapers will still attempted to be set.") + print("ERROR: The wallpaper attempted to be set has not been found and no fallback wallpaper has been set. Future wallpapers will still attempted to be set.") return False else: return True