Skip to content

Commit af77b47

Browse files
committed
fix: no backslashes in f-string expression part
1 parent 92a49c9 commit af77b47

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/xulbux/env_path.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def __persistent(path: str, remove: bool = False) -> None:
108108
_winreg.SetValueEx(key, "PATH", 0, _winreg.REG_EXPAND_SZ, new_path)
109109
_winreg.CloseKey(key)
110110
except Exception as e:
111-
raise RuntimeError(f"Failed to update PATH in registry:\n {str(e).replace('\n', ' \n')}")
111+
raise RuntimeError(f"Failed to update PATH in registry:\n " + str(e).replace("\n", " \n"))
112112

113113
else: # UNIX-LIKE (LINUX/macOS)
114114
shell_rc_file = _os.path.expanduser(

0 commit comments

Comments
 (0)