You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I have an API that has basic fastapi-problem implementation. Upon running the project it now tells me to use new_exception_handler, which from the docs I understand is a part of fastapi_problem.handler. Please let me know if i'm being stupid but I get an import error when I try to do so. I have downloaded the latest version of fastapi_problem with pip prior to running..
Any help is appreciated but not urgent as for now I will continue to use add_exception_handler for generating/ adding. Thanks
from fastapi_problem.handler import new_exception_handler
Traceback (most recent call last):
File "", line 1, in
ImportError: cannot import name 'new_exception_handler' from 'fastapi_problem.handler' (C:\Users-----\Desktop-------\Lib\site-packages\fastapi_problem\handler.py). Did you mean: 'add_exception_handler'?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I have an API that has basic fastapi-problem implementation. Upon running the project it now tells me to use new_exception_handler, which from the docs I understand is a part of fastapi_problem.handler. Please let me know if i'm being stupid but I get an import error when I try to do so. I have downloaded the latest version of fastapi_problem with pip prior to running..
Any help is appreciated but not urgent as for now I will continue to use add_exception_handler for generating/ adding. Thanks
Beta Was this translation helpful? Give feedback.
All reactions