Changed on windows as well

This commit is contained in:
Shay Nehmad 2019-09-10 14:50:54 +03:00
parent 4dca735265
commit 50f8e9053a
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ class NewUser(object):
# Try to delete user
try:
_ = subprocess.check_output(
_ = subprocess.Popen(
BackdoorUser.get_windows_commands_to_delete_user(self.username), stderr=subprocess.STDOUT, shell=True)
except Exception as err:
raise NewUserError("Can't delete user {}. Info: {}".format(self.username, err))