Skip to content

Commit a6e8f47

Browse files
committed
Merge branch 'SAC-30946-discovery-auth-perm' of https://github.com/singer-io/tap-mambu into SAC-30946-discovery-auth-perm
2 parents fa0544f + b83e6e5 commit a6e8f47

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tap_mambu/helpers/discover.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,10 @@ def check_stream_access(client, stream_name) -> bool:
6161
response means the credentials are valid and the stream is assumed accessible.
6262
Should only be called for streams that have a direct probe config (no 'parent' key).
6363
"""
64-
probe = STREAM_PROBE_CONFIG.get(stream_name, {})
64+
probe = STREAM_PROBE_CONFIG.get(stream_name)
65+
if not probe or "parent" in probe:
66+
raise ValueError(f"Stream '{stream_name}' does not have a direct probe configuration.")
67+
6568
path = probe["path"]
6669
method = probe["method"]
6770
version = probe.get("version", "v2")

0 commit comments

Comments
 (0)