adjust skip_qb_version_check to not notify if true

This commit is contained in:
bobokun 2023-06-05 10:36:43 -04:00
parent dbf8b6a87f
commit 24eb05bd89
No known key found for this signature in database
GPG key ID: B73932169607D927
2 changed files with 6 additions and 8 deletions

View file

@ -1 +1 @@
4.0.0-develop16
4.0.0-develop17

View file

@ -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")