mirror of
https://github.com/StuffAnThings/qbit_manage.git
synced 2025-10-09 21:36:52 +08:00
Fixes #488
This commit is contained in:
parent
3d230f39a1
commit
bcdba1cfa8
2 changed files with 4 additions and 4 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
||||||
4.0.9-develop9
|
4.0.9-develop10
|
||||||
|
|
|
@ -71,13 +71,13 @@ class Qbt:
|
||||||
logger.print_line(ex, "CRITICAL")
|
logger.print_line(ex, "CRITICAL")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
logger.info("Qbt Connection Successful")
|
logger.info("Qbt Connection Successful")
|
||||||
except LoginFailed as exc:
|
except LoginFailed:
|
||||||
ex = "Qbittorrent Error: Failed to login. Invalid username/password."
|
ex = "Qbittorrent Error: Failed to login. Invalid username/password."
|
||||||
self.config.notify(ex, "Qbittorrent")
|
self.config.notify(ex, "Qbittorrent")
|
||||||
raise Failed(exc) from exc
|
raise Failed(ex)
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
self.config.notify(exc, "Qbittorrent")
|
self.config.notify(exc, "Qbittorrent")
|
||||||
raise Failed(exc) from exc
|
raise Failed(exc)
|
||||||
logger.separator("Getting Torrent List", space=False, border=False)
|
logger.separator("Getting Torrent List", space=False, border=False)
|
||||||
self.torrent_list = self.get_torrents({"sort": "added_on"})
|
self.torrent_list = self.get_torrents({"sort": "added_on"})
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue