From b6d95c2ff301e572f024f525f6b5b81e73dafe5b Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Wed, 14 Oct 2026 10:04:50 -0500 Subject: Log out error to help with troubleshooting failures. --- scripts/load_phenotypes_to_db.py | 1 + 1 file changed, 1 insertion(+) (limited to 'scripts') diff --git a/scripts/load_phenotypes_to_db.py b/scripts/load_phenotypes_to_db.py index f906e07..addda99 100644 --- a/scripts/load_phenotypes_to_db.py +++ b/scripts/load_phenotypes_to_db.py @@ -292,6 +292,7 @@ def update_auth(# pylint: disable=[too-many-locals,too-many-positional-arguments }).then(lambda attc: (user, linkeddata, resource, attc)) def __handle_error__(resp): + logger.error("ERROR OCCURRED: %s", resp.response.text) error = resp.json() if error.get("error") == "IntegrityError": # This is hacky. If the auth already exists, something went wrong -- cgit 1.4.1