From 5e0eb3188520c87d2e245c943c814bec9aa98581 Mon Sep 17 00:00:00 2001 From: Audionut Date: Fri, 14 Feb 2025 14:06:10 +1000 Subject: [PATCH] lint --- data/example-config.py | 2 +- requirements.txt | 1 + src/clients.py | 6 +++--- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/data/example-config.py b/data/example-config.py index 02765d5a6..ca7af52c0 100644 --- a/data/example-config.py +++ b/data/example-config.py @@ -467,7 +467,7 @@ "transmission_sample": { "torrent_client": "transmission", - "transmission_protocol": "http", # http or https + "transmission_protocol": "http", # http or https "transmission_username": "username", "transmission_password": "password", "transmission_host": "localhost", diff --git a/requirements.txt b/requirements.txt index 292067b5f..b1c8b0506 100644 --- a/requirements.txt +++ b/requirements.txt @@ -28,3 +28,4 @@ httpx aiofiles pyparsebluray langcodes +transmission_rpc diff --git a/src/clients.py b/src/clients.py index 94fe06e65..d6660c393 100644 --- a/src/clients.py +++ b/src/clients.py @@ -505,10 +505,10 @@ def transmission(self, path, torrent, local_path, remote_path, client, meta): password=client['transmission_password'], path=client.get('transmission_path', "/transmission/rpc") ) - except Exception as err: - print(f"[bold red]Unable to connect to transmission") + except Exception: + console.print("[bold red]Unable to connect to transmission") return - + console.print("Connected to Transmission") # Remote path mount if local_path.lower() in path.lower() and local_path.lower() != remote_path.lower():