Skip to content

Commit

Permalink
Allow other Exceptions to bubble up a stack trace instead of silently
Browse files Browse the repository at this point in the history
failing in create_user.py
  • Loading branch information
daxxog committed Feb 10, 2022
1 parent 84fe19e commit 2757e13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wazuh-odfe/config/create_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
set_user_role,
update_user,
)
except Exception as e:
except ModuleNotFoundError as e:
logging.error("No module 'wazuh' found.")
sys.exit(1)

Expand Down

0 comments on commit 2757e13

Please sign in to comment.