Skip to content

Commit

Permalink
Handle case where lineitems_archived is not in catalog
Browse files Browse the repository at this point in the history
  • Loading branch information
hsyyid committed Nov 16, 2023
1 parent 3f6fb4c commit a760de6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tap_hubspot_beta/streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -886,6 +886,10 @@ def selected(self) -> bool:
Returns:
True if the stream is selected.
"""
# It has to be in the catalog or it will cause issues
if not self._tap.catalog.get("lineitems_archived"):
return False

try:
# Make this stream auto-select if lineitems is selected
self._tap.catalog["lineitems_archived"] = self._tap.catalog["lineitems"]
Expand Down

0 comments on commit a760de6

Please sign in to comment.