From 195424cefba230289e25eead3c7ac9220de00dce Mon Sep 17 00:00:00 2001 From: Ilya Mukhortov Date: Tue, 20 Jan 2026 11:52:16 +1000 Subject: [PATCH] pass --- appa/tasks.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/appa/tasks.py b/appa/tasks.py index 45cb70d..dbaa415 100644 --- a/appa/tasks.py +++ b/appa/tasks.py @@ -69,11 +69,12 @@ def update_call_requests_task(self): service_name = call_specialities[booking['user']['doctor']['speciality']].name for booking_service in booking['services']: - service_code = booking_service['service']['code'] - for regex, bot_talking in call_services.items(): - if re.match(regex, service_code.strip()): - service_name = bot_talking - break + if booking_service['service'] is not None: + service_code = booking_service['service']['code'] + for regex, bot_talking in call_services.items(): + if re.match(regex, service_code.strip()): + service_name = bot_talking + break if lpu is None or service_name is None: continue