From 9e5081a49971765723324b6892dc57d377cf99a7 Mon Sep 17 00:00:00 2001 From: Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com> Date: Thu, 6 Oct 2022 16:25:57 -0500 Subject: [PATCH] fix re-export --- pyproject.toml | 2 +- xpresso/middleware/exceptions.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index ef7eeadf..e5642a9b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "xpresso" -version = "0.44.0" +version = "0.44.1" description = "A developer centric, performant Python web framework" authors = ["Adrian Garcia Badaracco "] readme = "README.md" diff --git a/xpresso/middleware/exceptions.py b/xpresso/middleware/exceptions.py index aef55014..9e54dcb7 100644 --- a/xpresso/middleware/exceptions.py +++ b/xpresso/middleware/exceptions.py @@ -1,8 +1,10 @@ import asyncio from starlette.concurrency import run_in_threadpool -from starlette.exceptions import ExceptionMiddleware as StarletteExceptionMiddleware from starlette.exceptions import HTTPException +from starlette.middleware.exceptions import ( + ExceptionMiddleware as StarletteExceptionMiddleware, +) from starlette.requests import Request from starlette.types import Message, Receive, Scope, Send