diff --git a/src/dispatch/signal/service.py b/src/dispatch/signal/service.py index 6f5042c8371b..1a8579d82e9e 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.signal.raw.name if signal_instance.signal and signal_instance.signal.raw and signal_instance.signal.raw.name else signal_instance.signal.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['name'] else signal_instance.raw['variant']}" log.warn(msg) raise HTTPException( status_code=status.HTTP_400_BAD_REQUEST,