From 7eb6cb0b861f52c5a5c0229cbc0864c6f9e8833a Mon Sep 17 00:00:00 2001 From: deflax Date: Thu, 6 Mar 2025 00:08:04 +0000 Subject: [PATCH] Check if stream details are None --- src/api/app/flask_api.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/api/app/flask_api.py b/src/api/app/flask_api.py index df96d86..1795a52 100644 --- a/src/api/app/flask_api.py +++ b/src/api/app/flask_api.py @@ -64,11 +64,11 @@ def process_running_channel(database, scheduler, stream_id, stream_name, stream_ logger_job.warning(f'{stream_id} ({stream_name}) found. {api_settings} ') # Check whether we have stream details - try: - stream_details = api_settings.get('details') - logger_job.warning(f'Details found: {stream_details}') - except Exception as e: + stream_details = api_settings.get('details') + if stream_details is None: stream_details = "" + else: + logger_job.warning(f'Details found: {stream_details}') if stream_start == "now": # Check if the stream_hls_url returns 200