From 39170a04fdb799237c427e559436548144cba73b Mon Sep 17 00:00:00 2001 From: Rohit Chatterjee Date: Mon, 4 Dec 2023 15:59:44 +0530 Subject: [PATCH] ensure that "forms_using_endtime" is in the config --- .../connectors/source-kobotoolbox/source_kobotoolbox/source.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airbyte-integrations/connectors/source-kobotoolbox/source_kobotoolbox/source.py b/airbyte-integrations/connectors/source-kobotoolbox/source_kobotoolbox/source.py index abc7e9f26fb6..bfaf4c5b6d31 100644 --- a/airbyte-integrations/connectors/source-kobotoolbox/source_kobotoolbox/source.py +++ b/airbyte-integrations/connectors/source-kobotoolbox/source_kobotoolbox/source.py @@ -231,7 +231,7 @@ def streams(self, config: Mapping[str, Any]) -> List[Stream]: streams = [] for form_dict in key_list: if form_dict["has_deployment"]: - if form_dict["name"] in config["forms_using_endtime"]: + if "forms_using_endtime" in config and form_dict["name"] in config["forms_using_endtime"]: stream = KoboStreamEndTime( config=config, form_id=form_dict["uid"],