From af9e4716af5569dd8c2ea979447126ea6adc8338 Mon Sep 17 00:00:00 2001 From: Conor Schaefer Date: Tue, 12 May 2020 07:34:57 -0700 Subject: [PATCH] Lints updater code for flake8 F523 F523 is use of str.format without the required a properly structured fmt string. See https://flake8.pycqa.org/en/latest/user/error-codes.html --- launcher/sdw_updater_gui/Updater.py | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/launcher/sdw_updater_gui/Updater.py b/launcher/sdw_updater_gui/Updater.py index 03fa2bf3..affb85cf 100644 --- a/launcher/sdw_updater_gui/Updater.py +++ b/launcher/sdw_updater_gui/Updater.py @@ -502,25 +502,13 @@ def should_launch_updater(interval): sdlog.info("Required reboot pending, launching updater") return True elif status["status"] == UpdateStatus.UPDATES_REQUIRED.value: - sdlog.info( - "Updates are required, launching updater.".format( - str(status["status"]) - ) - ) + sdlog.info("Updates are required, launching updater.") return True elif status["status"] == UpdateStatus.UPDATES_FAILED.value: - sdlog.info( - "Preceding update failed, launching updater.".format( - str(status["status"]) - ) - ) + sdlog.info("Preceding update failed, launching updater.") return True else: - sdlog.info( - "Update status is unknown, launching updater.".format( - str(status["status"]) - ) - ) + sdlog.info("Update status is unknown, launching updater.") return True else: sdlog.info("Update status not available, launching updater.")