diff --git a/src/middleware.py b/src/middleware.py index b3ff854..6430fee 100644 --- a/src/middleware.py +++ b/src/middleware.py @@ -1,11 +1,12 @@ +import base64 import logging +import uuid + from fastapi import Request -import base64 +from starlette.datastructures import MutableHeaders from starlette.middleware.base import BaseHTTPMiddleware from starlette.responses import StreamingResponse from starlette.types import Send -from starlette.datastructures import MutableHeaders -import uuid import state diff --git a/src/utilities.py b/src/utilities.py index 41d649d..b184da1 100644 --- a/src/utilities.py +++ b/src/utilities.py @@ -6,9 +6,10 @@ # # Created: 2024-04-15 by eric.broda@brodagroupsoftware.com -from typing import List, Optional, Dict, Any -import httpx import logging +from typing import Any, Dict, List, Optional + +import httpx from bgsexception import BgsException, BgsNotFoundException @@ -133,4 +134,4 @@ def shttprequest(host: str, port: int, service: str, method: str, except Exception as e: msg = f"Unexpected error for {url}: {e}" logger.error(msg) - raise BgsException(msg) \ No newline at end of file + raise BgsException(msg)