Allow other Exceptions to bubble up a stack trace instead of silently failing in create_user.py

This commit is contained in:
Volm, David
2022-02-10 07:51:29 -06:00
committed by Alberto R
parent 01a0e3dabd
commit 7c642638ff

View File

@@ -21,7 +21,7 @@ try:
set_user_role,
update_user,
)
except Exception as e:
except ModuleNotFoundError as e:
logging.error("No module 'wazuh' found.")
sys.exit(1)