Skip to content
This repository was archived by the owner on May 6, 2020. It is now read-only.

Commit 4c36791

Browse files
author
Matthew Fisher
authored
fix(management): display error when connecting to the database (#1190)
This error message is useful even without debug enabled.
1 parent 805a455 commit 4c36791

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

rootfs/api/management/commands/healthchecks.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from django.core.management.base import BaseCommand
2-
from django.conf import settings
32
import django.db
43
import sys
54

@@ -14,7 +13,5 @@ def handle(self, *args, **options):
1413
print("Database is alive!")
1514
except Exception as e:
1615
print("There was a problem connecting to the database")
17-
if settings.DEBUG:
18-
print(str(e))
19-
16+
print(str(e))
2017
sys.exit(1)

0 commit comments

Comments
 (0)