Commit 5c58e56c authored by Waleed Akbar's avatar Waleed Akbar
Browse files

fix: Correct conditional logic for mapping validation in EventDispatcher

parent 86721d10
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -867,7 +867,7 @@ class EventDispatcher(BaseEventDispatcher):
                return
            
            # Defensive: distinguish mapping dicts from potential protobuf Connection objects
            if not isinstance(mapping, dict) or 'domain' not in mapping or 'links' not in mapping:
            elif not isinstance(mapping, dict) or 'domain' not in mapping or 'links' not in mapping:
                MSG = 'Invalid mapping structure for connection {:s}: expected dict with domain/links keys'
                raise Exception(MSG.format(connection_uuid))