Skip to content

Commit 2df8b1a

Browse files
resolved pylint issue
1 parent 38a2d62 commit 2df8b1a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/backend/api/api_routes.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,15 @@
6767
logging.WARNING
6868
)
6969

70+
7071
def record_exception_to_trace(e):
7172
"""Record exception to the current OpenTelemetry trace span."""
7273
span = trace.get_current_span()
7374
if span is not None:
7475
span.record_exception(e)
7576
span.set_status(Status(StatusCode.ERROR, str(e)))
7677

78+
7779
# start processing the batch
7880
@router.post("/start-processing")
7981
async def start_processing(request: Request):
@@ -424,7 +426,6 @@ async def get_batch_status(request: Request, batch_id: str):
424426
track_event_if_configured(
425427
"BatchStoryRetrieved", {"batch_id": batch_id, "user_id": user_id}
426428
)
427-
428429
return batch_data
429430
except HTTPException as e:
430431
record_exception_to_trace(e)

0 commit comments

Comments
 (0)