update error and warning message

This commit is contained in:
bobokun 2021-12-21 10:05:16 -05:00
parent a633fc459c
commit 8b2e17b23a
No known key found for this signature in database
GPG key ID: 9665BA6CF5DC2671
2 changed files with 1 additions and 5 deletions

View file

@ -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:

View file

@ -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