Commit 3fe701c0 by John Jarvis

check for None so an empty string is valid for a password

parent d28f2f59
...@@ -21,7 +21,7 @@ DB_OVERRIDES = dict( ...@@ -21,7 +21,7 @@ DB_OVERRIDES = dict(
PORT=os.environ.get('DB_MIGRATION_PORT', DATABASES['default']['PORT']), PORT=os.environ.get('DB_MIGRATION_PORT', DATABASES['default']['PORT']),
) )
if not DB_OVERRIDES['PASSWORD']: if DB_OVERRIDES['PASSWORD'] is None:
raise ImproperlyConfigured("No database password was provided for running " raise ImproperlyConfigured("No database password was provided for running "
"migrations. This is fatal.") "migrations. This is fatal.")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment