Skip to content

Commit

Permalink
Fix import loop
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathangreen committed Feb 23, 2024
1 parent 5a1118a commit cce6f32
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions core/util/http.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
from __future__ import annotations

import logging
import time
from collections.abc import Callable
from json import JSONDecodeError
from typing import Any
from typing import TYPE_CHECKING, Any
from urllib.parse import urlparse

import requests
Expand All @@ -14,7 +16,6 @@

import core
from core.exceptions import IntegrationException
from core.model.resource import HttpResponseTuple
from core.problem_details import INTEGRATION_ERROR
from core.util.log import LoggerMixin
from core.util.problem_detail import JSON_MEDIA_TYPE as PROBLEM_DETAIL_JSON_MEDIA_TYPE
Expand All @@ -24,6 +25,9 @@
ProblemDetailException,
)

if TYPE_CHECKING:
from core.model.resource import HttpResponseTuple


class RemoteIntegrationException(IntegrationException, BaseProblemDetailException):
"""An exception that happens when we try and fail to communicate
Expand Down

0 comments on commit cce6f32

Please sign in to comment.