Linting python scripts

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
This commit is contained in:
Jiri Podivin 2024-08-30 17:24:34 +02:00 committed by kevin
parent 5e0ad1134d
commit f513e7cbcd
29 changed files with 17 additions and 43 deletions

View file

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