From 0b4c36d93a6ac43fe0e90e44549c2de99f3c6cdf Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Thu, 1 Aug 2024 16:18:04 +0100 Subject: Releasing the exception working to the error message. --- pyblackbird_cc/resources/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pyblackbird_cc/resources') diff --git a/pyblackbird_cc/resources/views.py b/pyblackbird_cc/resources/views.py index 9d85bfa..40ca4aa 100644 --- a/pyblackbird_cc/resources/views.py +++ b/pyblackbird_cc/resources/views.py @@ -123,8 +123,8 @@ def _extract_metadata_from_resource(resource_obj) -> ResourceInfo | None: created=resource_obj.created_at, updated=resource_obj.updated_at, ) - except Exception: - logging.exception("Error extracting resource information") + except Exception as e: + logging.exception(f"Error extracting resource information: {e}") return None -- cgit v1.2.3