diff --git a/domain_admin/config/env_config.py b/domain_admin/config/env_config.py index 869d157db3..4492a346c9 100644 --- a/domain_admin/config/env_config.py +++ b/domain_admin/config/env_config.py @@ -32,4 +32,4 @@ APP_MODE = env.str("APP_MODE", 'production') # ALLOW_COMMANDS -ALLOW_COMMANDS = [cmd.strip() for cmd in env.str("ALLOW_COMMANDS", '').split(';')] +ALLOW_COMMANDS = [cmd.strip() for cmd in env.str("ALLOW_COMMANDS", '').split(';') if cmd.strip()]