Fallback to internal version if no version file exists

This will allow non-packaged versions of mycroft core to report version
to the backend.
pull/2528/head
Åke Forslund 2020-04-02 16:02:18 +02:00
parent f01b61ea16
commit 0d51a04166
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ class VersionManager:
return json.load(f)
except Exception:
LOG.error("Failed to load version from '%s'" % version_file)
return {"coreVersion": None, "enclosureVersion": None}
return {"coreVersion": CORE_VERSION_STR, "enclosureVersion": None}
def check_version(version_string):