Skip to content

Commit

Permalink
Fix issue probably-meant-fstring found at https://codereview.doctor
Browse files Browse the repository at this point in the history
  • Loading branch information
code-review-doctor authored and dwoz committed Dec 10, 2023
1 parent b9b0c24 commit 21bdb36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions salt/modules/mount.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 21bdb36

Please sign in to comment.