From 034f0623bf4442f2647b62cecf2fc3042e80f5a6 Mon Sep 17 00:00:00 2001 From: SergeantPanda Date: Mon, 23 Mar 2026 17:48:35 -0500 Subject: [PATCH] fix(tasks): handle AttributeError in series rule evaluation lock acquisition and release --- apps/channels/tasks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/channels/tasks.py b/apps/channels/tasks.py index 449a3f4a..f619ec47 100755 --- a/apps/channels/tasks.py +++ b/apps/channels/tasks.py @@ -1084,7 +1084,7 @@ def evaluate_series_rules_impl(tvg_id: str | None = None): if not lock_acquired: result["details"].append({"status": "skipped", "reason": "concurrent evaluation in progress"}) return result - except (ConnectionError, OSError): + except (ConnectionError, OSError, AttributeError): logger.warning("Could not acquire series rule evaluation lock (Redis unavailable), proceeding without lock") try: @@ -1093,7 +1093,7 @@ def evaluate_series_rules_impl(tvg_id: str | None = None): if lock_acquired: try: release_task_lock('evaluate_series_rules', 'all') - except (ConnectionError, OSError): + except (ConnectionError, OSError, AttributeError): logger.warning("Could not release series rule evaluation lock")