From 233d915ce869d2cb891331918bad51f8d3fa7567 Mon Sep 17 00:00:00 2001 From: Justin Bollinger Date: Sat, 25 Apr 2026 17:31:31 -0400 Subject: [PATCH] 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 --- README.md | 2 +- hate_crack/api.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1cde68f..0b3a2bb 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/hate_crack/api.py b/hate_crack/api.py index 00e1dea..c756fea 100644 --- a/hate_crack/api.py +++ b/hate_crack/api.py @@ -461,6 +461,7 @@ class TransmissionSession: if len(tokens) == 2: return tokens[1] return rest + return "" except Exception: return ""