From 5d45e532f02baa91672056df8380f02678691645 Mon Sep 17 00:00:00 2001 From: David Whittaker Date: Tue, 10 Dec 2024 16:16:22 -0800 Subject: [PATCH] fix(signal): get name from raw dictionary --- src/dispatch/signal/service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dispatch/signal/service.py b/src/dispatch/signal/service.py index 1b767d71679f..ba158d9e7b0e 100644 --- a/src/dispatch/signal/service.py +++ b/src/dispatch/signal/service.py @@ -596,7 +596,7 @@ def create_instance( signal_instance.id = signal_instance_in.raw["id"] if signal_instance.id and not is_valid_uuid(signal_instance.id): - msg = f"Invalid signal id format. Expecting UUIDv4 format. Signal id: {signal_instance.id}. Signal name/variant: {signal_instance.raw['name'] if signal_instance and signal_instance.raw and signal_instance.get('name') else signal_instance.raw['variant']}" + msg = f"Invalid signal id format. Expecting UUIDv4 format. Signal id: {signal_instance.id}. Signal name/variant: {signal_instance.raw['name'] if signal_instance and signal_instance.raw and signal_instance.raw.get('name') else signal_instance.raw['variant']}" log.warn(msg) raise HTTPException( status_code=status.HTTP_400_BAD_REQUEST,