Skip to content

Commit

Permalink
reverted DB connection comment
Browse files Browse the repository at this point in the history
  • Loading branch information
marslanabdulrauf committed Aug 9, 2023
1 parent e4d4323 commit d172127
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions credentials/apps/core/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ def health(_):
if newrelic: # pragma: no cover
newrelic.agent.ignore_transaction()
try:
# cursor = connection.cursor()
# cursor.execute("SELECT 1")
# cursor.fetchone()
# cursor.close()
cursor = connection.cursor()
cursor.execute("SELECT 1")
cursor.fetchone()
cursor.close()
database_status = Status.OK
except DatabaseError:
database_status = Status.UNAVAILABLE
Expand Down

0 comments on commit d172127

Please sign in to comment.