Skip to content

Commit b83e6e5

Browse files
rsaha-qlikCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent f3106f4 commit b83e6e5

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
@@ -57,7 +57,10 @@ def check_stream_access(client, stream_name) -> bool:
5757
response means the server accepted the credentials.
5858
Should only be called for streams that have a direct probe config (no 'parent' key).
5959
"""
60-
probe = STREAM_PROBE_CONFIG.get(stream_name, {})
60+
probe = STREAM_PROBE_CONFIG.get(stream_name)
61+
if not probe or "parent" in probe:
62+
raise ValueError(f"Stream '{stream_name}' does not have a direct probe configuration.")
63+
6164
path = probe["path"]
6265
method = probe["method"]
6366
version = probe.get("version", "v2")

0 commit comments

Comments
 (0)