From dee672287bd45bf7fcd3f5a4f8fc3f70f923f203 Mon Sep 17 00:00:00 2001 From: SergeantPanda Date: Sat, 18 Oct 2025 20:50:56 -0500 Subject: [PATCH] Bug fix: Fixes bug where if minute was not specified matching would fail for custom dummy. --- apps/output/views.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/output/views.py b/apps/output/views.py index 3f729d99..34cc4db5 100644 --- a/apps/output/views.py +++ b/apps/output/views.py @@ -425,7 +425,9 @@ def generate_custom_dummy_programs(channel_id, channel_name, now, num_days, cust time_groups = time_match.groupdict() try: hour = int(time_groups.get('hour')) - minute = int(time_groups.get('minute', 0)) + # Handle optional minute group - could be None if not captured + minute_value = time_groups.get('minute') + minute = int(minute_value) if minute_value is not None else 0 ampm = time_groups.get('ampm') ampm = ampm.lower() if ampm else None