mirror of
https://github.com/StuffAnThings/qbit_manage.git
synced 2025-10-25 13:37:08 +08:00
update error and warning message
This commit is contained in:
parent
a633fc459c
commit
8b2e17b23a
2 changed files with 1 additions and 5 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue