fix: new version %s found

This commit is contained in:
Terry Geng 2020-02-29 20:17:03 +08:00
parent e5b52230a5
commit 1b16dca551

View File

@ -199,7 +199,7 @@ class MumbleBot:
self.log.debug("update: checking for updates...") self.log.debug("update: checking for updates...")
new_version = util.new_release_version() new_version = util.new_release_version()
if version.parse(new_version) > version.parse(self.version): if version.parse(new_version) > version.parse(self.version):
self.log.info("update: new version %d found, current installed version %d." % (new_version, self.version)) self.log.info("update: new version %s found, current installed version %s." % (new_version, self.version))
self.send_msg(constants.strings('new_version_found')) self.send_msg(constants.strings('new_version_found'))
else: else:
self.log.debug("update: no new version found.") self.log.debug("update: no new version found.")