fix missing f-string preventing variable formatting

Detected by flake8 which reported that `e` was an unused variable.
pull/10011/head
Eli Schwartz 3 years ago
parent 60c893f1c2
commit 0b431a6b4a
No known key found for this signature in database
GPG Key ID: CEB167EFB5722BD6
  1. 2
      mesonbuild/minstall.py

@ -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)

Loading…
Cancel
Save