From 8b2e17b23ab64753c4554f8666aa073ee98bb4ed Mon Sep 17 00:00:00 2001 From: bobokun Date: Tue, 21 Dec 2021 10:05:16 -0500 Subject: [PATCH] update error and warning message --- modules/config.py | 4 ---- modules/qbittorrent.py | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/modules/config.py b/modules/config.py index 7372b20..c53544a 100644 --- a/modules/config.py +++ b/modules/config.py @@ -93,8 +93,6 @@ class Config: except Failed as e: logger.error(e) logger.info(f"Apprise Connection {'Failed' if self.AppriseFactory is None else 'Successful'}") - else: - logger.warning("Config Warning: apprise attribute not found") self.NotifiarrFactory = None @@ -111,8 +109,6 @@ class Config: except Failed as e: logger.error(e) logger.info(f"Notifiarr Connection {'Failed' if self.NotifiarrFactory is None else 'Successful'}") - else: - logger.warning("Config Warning: notifiarr attribute not found") self.Webhooks = Webhooks(self, self.webhooks, notifiarr=self.NotifiarrFactory,apprise=self.AppriseFactory) try: diff --git a/modules/qbittorrent.py b/modules/qbittorrent.py index 173b1a2..9e4f96d 100644 --- a/modules/qbittorrent.py +++ b/modules/qbittorrent.py @@ -221,7 +221,7 @@ class Qbt: for category in nohardlinks: torrent_list = self.get_torrents({'category':category,'filter':'completed'}) if len(torrent_list) == 0: - e = f('No torrents found in the category ('+category+') defined under nohardlinks attribute in the config. Please check if this matches with any category in qbittorrent and has 1 or more torrents.') + e = f'No torrents found in the category ('+category+') defined under nohardlinks attribute in the config. Please check if this matches with any category in qbittorrent and has 1 or more torrents.' self.config.notify(e,'Tag No Hard Links',False) logger.error(e) continue