Skip to content

Commit

Permalink
Remove extra exception handling
Browse files Browse the repository at this point in the history
Update patching in unit test
  • Loading branch information
NeonDaniel committed Dec 30, 2023
1 parent 0052232 commit 030b719
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions neon_core/skills/intent_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,6 @@ def __init__(self, bus: MessageBusClient):
except PermissionError:
LOG.warning("Unable to get writable config path; fallback to /tmp")
self._default_user = get_neon_user_config("/tmp")
except Exception as e:
LOG.exception(e)
from neon_utils.user_utils import get_default_user_config
self._default_user = get_default_user_config()

self._default_user['user']['username'] = "local"
set_default_lang(self.language_config["internal"])
Expand Down
2 changes: 1 addition & 1 deletion test/test_skills_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def tearDownClass(cls) -> None:
shutil.rmtree(cls.config_dir)

# @patch("neon_core.skills.skill_store.SkillsStore.install_default_skills")
@patch("mycroft.skills.skill_manager.SkillManager.run")
@patch("ovos_core.skill_manager.SkillManager.run")
def test_neon_skills_service(self, run):
from neon_core.skills.service import NeonSkillService
from neon_core.skills.skill_manager import NeonSkillManager
Expand Down

0 comments on commit 030b719

Please sign in to comment.