fix(api): add missing return in info_file after exhausted loop

Prevent implicit None return when no data row matches the expected
transmission-remote --info-files format. Also clarify README macOS
install note.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Justin Bollinger
2026-04-25 17:31:31 -04:00
parent 913dbd6efa
commit 233d915ce8
2 changed files with 2 additions and 1 deletions

View File

@@ -77,7 +77,7 @@ sudo apt-get install -y p7zip-full transmission-daemon
macOS (Homebrew):
```bash
brew install p7zip transmission-cli
brew install p7zip transmission-cli # provides transmission-daemon and transmission-remote
```
Then install the Python dependencies and CLI shim:

View File

@@ -461,6 +461,7 @@ class TransmissionSession:
if len(tokens) == 2:
return tokens[1]
return rest
return ""
except Exception:
return ""