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 return True
else: else:
ret = subprocess.call(cc) ret = subprocess.call(cc)
if ret != 0 or ret != 6: if ret != 0 and ret != 6:
raise lib.UserExceptions.UnknownReturnCode( raise lib.UserExceptions.UnknownReturnCode(
f"Could not delete user with command {cc}. Return code: {ret}") f"Could not delete user with command {cc}. Return code: {ret}")
return True return True

Loading…
Cancel
Save