From 36117b0c183ba4206917990015654bfcba4c9e62 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Sat, 24 Apr 2021 17:46:13 -0400 Subject: [PATCH] small NoneError Fix --- modules/config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/config.py b/modules/config.py index 378d48fe..397d14d7 100644 --- a/modules/config.py +++ b/modules/config.py @@ -388,7 +388,7 @@ class Config: logger.info(f"{params['name']} Library Connection Failed") continue - if self.general["radarr"]["url"] or "radarr" in lib: + if self.general["radarr"]["url"] or (lib and "radarr" in lib): logger.info("") logger.info(f"Connecting to {params['name']} library's Radarr...") radarr_params = {} @@ -408,7 +408,7 @@ class Config: util.print_multiline(e, error=True) logger.info(f"{params['name']} library's Radarr Connection {'Failed' if library.Radarr is None else 'Successful'}") - if self.general["sonarr"]["url"] or "sonarr" in lib: + if self.general["sonarr"]["url"] or (lib and "sonarr" in lib): logger.info("") logger.info(f"Connecting to {params['name']} library's Sonarr...") sonarr_params = {} @@ -434,7 +434,7 @@ class Config: util.print_multiline(e, error=True) logger.info(f"{params['name']} library's Sonarr Connection {'Failed' if library.Sonarr is None else 'Successful'}") - if self.general["tautulli"]["url"] or "tautulli" in lib: + if self.general["tautulli"]["url"] or (lib and "tautulli" in lib): logger.info("") logger.info(f"Connecting to {params['name']} library's Tautulli...") tautulli_params = {}