From 974cde52947a2cb733dca39bd6f92065eff5e72b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Tue, 6 Jul 2021 17:41:25 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20swu:=20Fix=20a=20bug=20in=20log?= =?UTF-8?q?=20line=20generation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/octoprint/plugins/softwareupdate/__init__.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/octoprint/plugins/softwareupdate/__init__.py b/src/octoprint/plugins/softwareupdate/__init__.py index a2c6532bd..9039c0121 100644 --- a/src/octoprint/plugins/softwareupdate/__init__.py +++ b/src/octoprint/plugins/softwareupdate/__init__.py @@ -183,9 +183,11 @@ class SoftwareUpdatePlugin( target_version=entry["target_version"], success="SUCCESS" if entry["success"] else "FAILED", text=entry["text"] - + " (Release notes: {})".format(entry["release_notes"]) - if entry["release_notes"] - else "", + + ( + " (Release notes: {})".format(entry["release_notes"]) + if entry["release_notes"] + else "" + ), ) result.append(line) return "\n".join(result)