Skip to content

Commit 68d2de2

Browse files
committed
Address PR feedback
1 parent 6b59255 commit 68d2de2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/firebase_functions/dataconnect_fn.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,8 @@ def _dataconnect_endpoint_handler(
208208
raw: _ce.CloudEvent,
209209
) -> None:
210210
# Currently, only mutationExecuted is supported
211-
assert event_type == _event_type_mutation_executed
211+
if event_type != _event_type_mutation_executed:
212+
raise NotImplementedError(f"Unsupported event type: {event_type}. Only {_event_type_mutation_executed} is currently supported.")
212213

213214
event_attributes = raw._get_attributes()
214215
event_data: _typing.Any = raw.get_data()

0 commit comments

Comments
 (0)