Skip to content

Commit

Permalink
more python
Browse files Browse the repository at this point in the history
  • Loading branch information
dtam committed Jul 15, 2024
1 parent 4570b3f commit 3908ef4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guardrails_api/utils/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def valid_configuration(config: Optional[str]=""):
# then raise ConfigurationError
has_default_config_file = os.path.isfile(default_config_file_path)

has_config_file = (config != "" and config != None) and os.path.isfile(os.path.abspath(config))
has_config_file = (config != "" and config is not None) and os.path.isfile(os.path.abspath(config))
if not has_default_config_file and not has_config_file and not postgres_is_enabled():
raise ConfigurationError("Can not start. Configuration not provided and default"
" configuration not found and postgres is not enabled.")
Expand Down

0 comments on commit 3908ef4

Please sign in to comment.