Skip to content

Commit

Permalink
Lints updater code for flake8 F523
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Conor Schaefer committed May 12, 2020
1 parent 2ef79f0 commit af9e471
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions launcher/sdw_updater_gui/Updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down

0 comments on commit af9e471

Please sign in to comment.