MushroomMaula / fastapi_login

FastAPI-Login tries to provide similar functionality as Flask-Login does.
https://pypi.org/project/fastapi-login
MIT License
639 stars 58 forks source link

Fix #78 #81

Closed MushroomMaula closed 2 years ago

MushroomMaula commented 2 years ago

This should fix #78 while at the same time keeping #47 resolved.

Instead of using except type(self.not_authenticated_exception), except Exception as _e is now used, which should catch any error and not just of the type of the user defined custom exception. Even tough this is normally not desired it seems to be the only way to support instances of fastapi.HTTPException and normal subclasses of Exception.