Skip to content

Commit

Permalink
fix missing f-string preventing variable formatting
Browse files Browse the repository at this point in the history
Detected by flake8 which reported that `e` was an unused variable.
  • Loading branch information
eli-schwartz committed Feb 16, 2022
1 parent 60c893f commit 0b431a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mesonbuild/minstall.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def set_mode(path: str, mode: T.Optional['FileMode'], default_umask: T.Union[str
try:
set_chmod(path, mode.perms, follow_symlinks=False)
except PermissionError as e:
print('{path!r}: Unable to set permissions {mode.perms_s!r}: {e.strerror}, ignoring...')
print(f'{path!r}: Unable to set permissions {mode.perms_s!r}: {e.strerror}, ignoring...')
else:
sanitize_permissions(path, default_umask)

Expand Down

0 comments on commit 0b431a6

Please sign in to comment.