System: userdel returns 6 when no maildir is deleted but homedir is

So we agree on that one!
feature-admin-split
Darksider3 5 years ago
parent fb9a98fb81
commit 6ea679cb60

@ -181,7 +181,7 @@ class System:
return True
else:
ret = subprocess.call(cc)
if ret != 0 or ret != 6:
if ret != 0 and ret != 6:
raise lib.UserExceptions.UnknownReturnCode(
f"Could not delete user with command {cc}. Return code: {ret}")
return True

Loading…
Cancel
Save