From 6dd216b93ce8340cc4b8981b1ac33ca5eb620d5d Mon Sep 17 00:00:00 2001 From: khaledk2 Date: Sun, 27 Oct 2024 18:30:46 +0000 Subject: [PATCH] fix --- configurations/configuration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configurations/configuration.py b/configurations/configuration.py index 49b4f8c..b6b0689 100644 --- a/configurations/configuration.py +++ b/configurations/configuration.py @@ -118,7 +118,7 @@ def update_config_file(updated_configuration, data_source=False): def config_datasource(configuration, updated_configuration): changed = False Found = False - if updated_configuration.get("CSV").get("type") =="CSV": + if updated_configuration.get("CSV") and updated_configuration.get("CSV").get("type") =="CSV": for data_source in configuration.get("DATA_SOURCES"): if data_source.get("name").lower()==updated_configuration.get("name").lower(): Found=True