Skip to content

Commit

Permalink
Raise ValueError if the database URL cannot be constructed
Browse files Browse the repository at this point in the history
  • Loading branch information
bbrondel committed Jan 27, 2025
1 parent 2396eae commit 25fe800
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/lsst/consdb/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def database_url(self) -> str:
self.postgres_url = url
return url

return "ERROR DATABASE CONNECTION NOT SPECIFIED"
raise ValueError("Database connection not specified")

@field_validator("log_config")
@classmethod
Expand Down

0 comments on commit 25fe800

Please sign in to comment.