Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
khaledk2 committed Oct 27, 2024
1 parent 5a32426 commit 6dd216b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configurations/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6dd216b

Please sign in to comment.