Skip to content
This repository was archived by the owner on Apr 2, 2025. It is now read-only.

Commit 516e3d6

Browse files
author
Phil Varner
committed
lint/fmt
1 parent 84c4567 commit 516e3d6

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/stapi_fastapi/routers/product_router.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
from __future__ import annotations
22

33
import logging
4-
from typing import TYPE_CHECKING, Self
54
import traceback
5+
from typing import TYPE_CHECKING, Self
6+
67
from fastapi import APIRouter, HTTPException, Request, Response, status
78
from geojson_pydantic.geometries import Geometry
89
from returns.result import Failure, Success

src/stapi_fastapi/routers/root_router.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import logging
2-
from typing import Self
32
import traceback
3+
from typing import Self
4+
45
from fastapi import APIRouter, HTTPException, Request, status
56
from fastapi.datastructures import URL
67
from fastapi.responses import Response
@@ -201,7 +202,8 @@ async def get_order(self: Self, order_id: str, request: Request) -> Order:
201202
raise NotFoundException("Order not found")
202203
case Failure(e):
203204
logger.error(
204-
"An error occurred while retrieving order '%s': %s", order_id,
205+
"An error occurred while retrieving order '%s': %s",
206+
order_id,
205207
traceback.format_exception(e),
206208
)
207209
raise HTTPException(

0 commit comments

Comments
 (0)