diff options
author | 2021-09-07 18:16:54 +0100 | |
---|---|---|
committer | 2021-09-07 18:21:10 +0100 | |
commit | 4411ae4bbffabbf962b5270cd7aaee5b6495ab6e (patch) | |
tree | 571f5c42776849feedfbbb37557bfe087861f5bb /manage.py | |
parent | Remove unnecessary variable (diff) |
Raise a ValueError with a useful message for invalid db urls
Diffstat (limited to 'manage.py')
-rwxr-xr-x | manage.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -65,7 +65,9 @@ class SiteManager: db_url_parts.password, db_url_parts.path )): - raise OSError("Valid DATABASE_URL environment variable not found.") + raise ValueError( + "The DATABASE_URL environment variable is not a valid PostgreSQL database URL." + ) return db_url_parts @staticmethod |