forked from wazuh/wazuh-docker
Allow other Exceptions to bubble up a stack trace instead of silently failing in create_user.py
This commit is contained in:
@@ -21,7 +21,7 @@ try:
|
|||||||
set_user_role,
|
set_user_role,
|
||||||
update_user,
|
update_user,
|
||||||
)
|
)
|
||||||
except Exception as e:
|
except ModuleNotFoundError as e:
|
||||||
logging.error("No module 'wazuh' found.")
|
logging.error("No module 'wazuh' found.")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user