Skip to content

Commit 95169f8

Browse files
author
Mike DeLaurentis
committed
Don't validate message type
1 parent b4983ac commit 95169f8

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

stitchclient/client.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,13 @@ def __init__(self,
4040
self.callback_function = callback_function
4141

4242
def push(self, message, callback_arg=None):
43-
"""
44-
message must be a dict with at least these keys:
45-
action, table_name, key_names, sequence, data
46-
and optionally these keys:
47-
table_version
43+
"""message should be a dict recognized by the Stitch Import API.
44+
45+
See https://www.stitchdata.com/docs/integrations/import-api.
4846
"""
4947

5048
if message['action'] == 'upsert':
5149
message.setdefault('key_names', self.key_names)
52-
else:
53-
raise ValueError('Message action property must be "upsert"')
5450

5551
message['client_id'] = self.client_id
5652
message.setdefault('table_name', self.table_name)

0 commit comments

Comments
 (0)