diff --git a/pghoard/monitoring/sentry.py b/pghoard/monitoring/sentry.py index 9a52d91c..ee20732e 100644 --- a/pghoard/monitoring/sentry.py +++ b/pghoard/monitoring/sentry.py @@ -14,8 +14,8 @@ def __init__(self, config): LOG.info("Sentry DSN not found, skipping setup") return try: - from sentry_sdk.integrations.logging import LoggingIntegration import sentry_sdk + from sentry_sdk.integrations.logging import LoggingIntegration except ImportError: LOG.info("Sentry SDK not found, skipping setup") return