From d8c45bbbde1f7798d91eb3b8cbe0f3257bc98a5f Mon Sep 17 00:00:00 2001 From: JarbasAi Date: Thu, 20 Apr 2023 21:59:57 +0100 Subject: [PATCH] classic mycrof-core (why do i still care?) --- ovos_workshop/skills/base.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ovos_workshop/skills/base.py b/ovos_workshop/skills/base.py index 49a5bf0e..4947b2b9 100644 --- a/ovos_workshop/skills/base.py +++ b/ovos_workshop/skills/base.py @@ -937,8 +937,13 @@ def __get_response(self): if OVOS_VERSION_MAJOR == 0 and OVOS_VERSION_MINOR == 0 and OVOS_VERSION_BUILD <= 8 and OVOS_VERSION_ALPHA < 5: is_old = True except ImportError: - # standalone usage without core - pass + try: + # classic mycroft-core / not ovos + from mycroft.version import CORE_VERSION_MAJOR + is_old = True + except ImportError: + # standalone usage without core + pass self.bus.emit(Message("skill.converse.get_response.enable", {"skill_id": self.skill_id}))