Corrected try except block for DATABASES['default'] user and password