updated readme and changed to catch root exception

This commit is contained in:
2022-07-20 10:36:54 -05:00
parent 81df444765
commit 1889901f93
5 changed files with 15 additions and 4 deletions

View File

@@ -46,8 +46,9 @@ class Qbt:
self.tl.info('Connecting to host.')
self.qbt_client.auth_log_in()
self.tl.info('Connected.')
except qbittorrentapi.LoginFailed as e:
except qbittorrentapi.APIError as e:
self.tl.exception(e)
self.poc.send_message(e, title="qbit-maid API ERROR")
self.torrentlist = {}
self.torrentlist = self.qbt_client.torrents_info()
listqbitapiinfo(self)