Skip to content

Commit

Permalink
Chore: pre-commit autoupdate
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed May 27, 2024
1 parent 6031db8 commit 285fac7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions src/middleware.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
7 changes: 4 additions & 3 deletions src/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@
#
# Created: 2024-04-15 by [email protected]

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

Expand Down Expand Up @@ -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)
raise BgsException(msg)

0 comments on commit 285fac7

Please sign in to comment.