mirror of
https://github.com/StuffAnThings/qbit_manage.git
synced 2025-10-20 02:36:19 +08:00
Fixes #356
This commit is contained in:
parent
b217bbcdba
commit
cbd09b9562
2 changed files with 4 additions and 10 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
4.0.3-develop2
|
||||
4.0.3-develop3
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
import os
|
||||
import sys
|
||||
|
||||
from qbittorrentapi import APIConnectionError
|
||||
from qbittorrentapi import Client
|
||||
from qbittorrentapi import LoginFailed
|
||||
from qbittorrentapi import NotFound404Error
|
||||
|
@ -74,15 +73,10 @@ class Qbt:
|
|||
except LoginFailed as exc:
|
||||
ex = "Qbittorrent Error: Failed to login. Invalid username/password."
|
||||
self.config.notify(ex, "Qbittorrent")
|
||||
raise Failed(ex) from exc
|
||||
except APIConnectionError as exc:
|
||||
ex = "Qbittorrent Error: Unable to connect to the client."
|
||||
self.config.notify(ex, "Qbittorrent")
|
||||
raise Failed(ex) from exc
|
||||
raise Failed(exc) from exc
|
||||
except Exception as exc:
|
||||
ex = "Qbittorrent Error: Unable to connect to the client."
|
||||
self.config.notify(ex, "Qbittorrent")
|
||||
raise Failed(ex) from exc
|
||||
self.config.notify(exc, "Qbittorrent")
|
||||
raise Failed(exc) from exc
|
||||
logger.separator("Getting Torrent List", space=False, border=False)
|
||||
self.torrent_list = self.get_torrents({"sort": "added_on"})
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue