diff options
Diffstat (limited to 'kvmd')
-rw-r--r-- | kvmd/apps/htpasswd/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kvmd/apps/htpasswd/__init__.py b/kvmd/apps/htpasswd/__init__.py index c6f56087..05d191f0 100644 --- a/kvmd/apps/htpasswd/__init__.py +++ b/kvmd/apps/htpasswd/__init__.py @@ -57,8 +57,8 @@ def _get_htpasswd_for_write(config: Section) -> Generator[passlib.apache.Htpassw dir=os.path.dirname(path), ) try: - stat = os.stat(path) try: + stat = os.stat(path) with open(path, "rb") as htpasswd_file: os.write(tmp_fd, htpasswd_file.read()) os.fchown(tmp_fd, stat.st_uid, stat.st_gid) |