mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
actions: Check with flake8
Also fix flake8 warnings. Closes: #1613 Signed-off-by: Veiko Aasa <veiko17@disroot.org> [sunil@medhas.org split multi strings differently to avoid spaces] Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
1 parent
938e83ade6
commit
ed646d84a5
15 files changed
+44
-37
No files matched your search
+1
-1
@@ -70,7 +70,7 @@ def get_user_homedir(username):
|
||||
"""Return the home dir of a user by looking up in password database."""
|
||||
try:
|
||||
return pwd.getpwnam(username).pw_dir
|
||||
except KeyError as exception:
|
||||
except KeyError:
|
||||
print('Username not found')
|
||||
sys.exit(1)
|
||||
|
||||
|
||||
Reference in new issue
Block a user