1
0
mirror of https://github.com/altlinux/gpupdate.git synced 2025-03-22 02:50:32 +03:00

Fix pylint error "Line too long" (:62) in gpupdate

This commit fixes the following error:

```
C: 62, 0: Line too long (128/100) (line-too-long)
```
This commit is contained in:
Игорь Чудов 2020-01-13 19:11:34 +04:00
parent 02869f8f6a
commit 1a7d84ba3c
Signed by untrusted user: nir
GPG Key ID: 0F3883600CAE7AAC

View File

@ -59,7 +59,11 @@ def runner_factory(args):
username = pwd.getpwnam(args.user).pw_name
except:
username = None
logging.error('Unable to perform gpupdate for non-existent user {}, will update machine settings'.format(args.user))
logstring = (
'Unable to perform gpupdate for non-existent user {},'
'will update machine settings'
)
logging.error(logstring.format(args.user))
else:
# User may only perform gpupdate for machine (None) or
# itself (os.getusername()).