Linting python scripts
Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
This commit is contained in:
parent
5e0ad1134d
commit
f513e7cbcd
29 changed files with 17 additions and 43 deletions
|
@ -60,7 +60,7 @@ MSG_FORMAT = "%(now)s\t%(count)s\t%(category)s\t%(name)s\t%(data)s\n"
|
|||
def getlogin():
|
||||
try:
|
||||
user = os.getlogin()
|
||||
except OSError as e:
|
||||
except OSError:
|
||||
user = pwd.getpwuid(os.geteuid())[0]
|
||||
return user
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue