Fix issue probably-meant-fstring found at https://codereview.doctor

This commit is contained in:
code-review-doctor 2022-04-24 17:25:18 +01:00 committed by Daniel Wozniak
parent b9b0c2462b
commit 21bdb366e5

View file

@ -1924,7 +1924,7 @@ def set_filesystems(
except OSError:
raise CommandExecutionError("File not writable {}".format(config))
except Exception as exc:
raise CommandExecutionError("set_filesystems error exception {exc}")
raise CommandExecutionError(f"set_filesystems error exception {exc}")
return ret
@ -1973,7 +1973,7 @@ def rm_filesystems(name, device, config="/etc/filesystems"):
except OSError as exc:
raise CommandExecutionError("Couldn't write to {}: {}".format(config, exc))
except Exception as exc:
raise CommandExecutionError("rm_filesystems error exception {exc}")
raise CommandExecutionError(f"rm_filesystems error exception {exc}")
return modified