Skip to content

Commit

Permalink
#258 fix missing db_connections.json handling
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonSAMPERE committed Apr 9, 2024
1 parent 7d844cf commit e5506dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/settings_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def load_db_connections(self):
)
logger.warning("Let's create it with the default content.")
json_content = self.get_default_db_connections_content()
self.update_config_json(json_content)
self.dump_json_file(self.db_connections_json_path, json_content)
elif not self.check_db_connections_json_content(json_content):
logger.warning(
"{} json file content is not correctly formatted : {}.".format(
Expand All @@ -230,7 +230,7 @@ def load_db_connections(self):
)
logger.warning("Let's replace it with the default content.")
json_content = self.get_default_db_connections_content()
self.update_config_json(json_content)
self.dump_json_file(self.db_connections_json_path, json_content)
else:
pass

Expand Down

0 comments on commit e5506dd

Please sign in to comment.