Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Audionut committed Feb 14, 2025
1 parent 55d997c commit 5e0eb31
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion data/example-config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ httpx
aiofiles
pyparsebluray
langcodes
transmission_rpc
6 changes: 3 additions & 3 deletions src/clients.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit 5e0eb31

Please sign in to comment.