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:
parent
02869f8f6a
commit
1a7d84ba3c
@ -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()).
|
||||
|
Loading…
x
Reference in New Issue
Block a user