Skip to content

Commit

Permalink
Fix skill settings init error
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel committed Dec 29, 2023
1 parent df2c690 commit 530e6fb
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions neon_utils/skills/neon_skill.py
Original file line number Diff line number Diff line change
Expand Up @@ -531,12 +531,11 @@ def _init_settings(self):
from neon_utils.configuration_utils import dict_update_keys
BaseSkill._init_settings(self)
settings_from_disk = dict(self.settings)
self.settings = dict_update_keys(self.settings,
self._read_default_settings())
if self.settings != settings_from_disk:
dict_update_keys(self._settings, self._read_default_settings())
if self._settings != settings_from_disk:
LOG.info("Updated default settings from skill metadata")
self.settings.store()
self._initial_settings = dict(self.settings)
self._settings.store()
self._initial_settings = dict(self._settings)
LOG.info(f"Skill initialized with settings: {self.settings}")

def _handle_converse_request(self, message: Message):
Expand Down

0 comments on commit 530e6fb

Please sign in to comment.