mirror of
https://github.com/StuffAnThings/qbit_manage.git
synced 2025-10-24 12:46:52 +08:00
adjust skip_qb_version_check to not notify if true
This commit is contained in:
parent
dbf8b6a87f
commit
24eb05bd89
2 changed files with 6 additions and 8 deletions
2
VERSION
2
VERSION
|
|
@ -1 +1 @@
|
|||
4.0.0-develop16
|
||||
4.0.0-develop17
|
||||
|
|
|
|||
|
|
@ -57,16 +57,14 @@ class Qbt:
|
|||
+ f"Please downgrade your qBittorrent version to {self.SUPPORTED_VERSION} to use qbit_manage."
|
||||
)
|
||||
if ex:
|
||||
self.config.notify(ex, "Qbittorrent")
|
||||
logger.print_line(ex, "CRITICAL")
|
||||
if self.config.commands["skip_qb_version_check"]:
|
||||
logger.print_line(
|
||||
"Continuing because qBittorrent version check is bypassed... Please do not ask for support!"
|
||||
)
|
||||
ex += "\n[BYPASS]: Continuing because qBittorrent version check is bypassed... Please do not ask for support!"
|
||||
logger.print_line(ex, "WARN")
|
||||
else:
|
||||
self.config.notify(ex, "Qbittorrent")
|
||||
logger.print_line(ex, "CRITICAL")
|
||||
sys.exit(0)
|
||||
else:
|
||||
logger.info("Qbt Connection Successful")
|
||||
logger.info("Qbt Connection Successful")
|
||||
except LoginFailed as exc:
|
||||
ex = "Qbittorrent Error: Failed to login. Invalid username/password."
|
||||
self.config.notify(ex, "Qbittorrent")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue