Improve error checking in listing users

This commit is contained in:
Sarina
2024-07-23 17:40:00 +03:30
parent f2c9cbf516
commit 69a205a487
2 changed files with 6 additions and 2 deletions

View File

@ -41,7 +41,7 @@ def run_cmd(command: list[str]):
Runs a command and returns the output.
Could raise subprocess.CalledProcessError
'''
if DEBUG and Command.GET_USER.value not in command:
if DEBUG and Command.GET_USER.value not in command and Command.LIST_USERS.value not in command:
print(' '.join(command))
result = subprocess.check_output(command, shell=False)
if DEBUG: