]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
:bug: Un-hide inner HTTPException errors
authorSebastián Ramírez <tiangolo@gmail.com>
Mon, 10 Dec 2018 14:17:42 +0000 (18:17 +0400)
committerSebastián Ramírez <tiangolo@gmail.com>
Mon, 10 Dec 2018 14:17:42 +0000 (18:17 +0400)
fastapi/__init__.py
fastapi/routing.py

index fc4a08aeca232a995df931cfd426b0060c2d9f67..209a0c6d6b1fa88a955e496ddafe5eb22f69c37d 100644 (file)
@@ -1,6 +1,6 @@
 """FastAPI framework, high performance, easy to learn, fast to code, ready for production"""
 
-__version__ = "0.1.6"
+__version__ = "0.1.7"
 
 from .applications import FastAPI
 from .routing import APIRouter
index 57ed655cb984e140bc3005bc14c2c248f7336cd9..c42aeccea06bb20d8dcb66fcbc8120f684e66324 100644 (file)
@@ -66,13 +66,9 @@ def get_app(
             raise HTTPException(
                 status_code=400, detail="There was an error parsing the body"
             )
-        try:
             values, errors = await solve_dependencies(
                 request=request, dependant=dependant, body=body
             )
-        except Exception as e:
-            logging.error("Error solving dependencies", e)
-            raise HTTPException(status_code=400, detail="Error processing request")
         if errors:
             errors_out = ValidationError(errors)
             raise HTTPException(