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
potential_handler
The handler may just be a function that does not call hug.exception(SomeException, potential_handler) injects the handle
And it is directly called http.add_exception_handler method to inject an exception handler
This situation results in an AttributeError
File "/root/.cache/pypoetry/virtualenvs/xxxx-CoXUkZCy-py3.8/lib/python3.8/site-packages/hug/interface.py", line 919, in __call__
if not isinstance(exception, potential_handler.exclude):
AttributeError: 'function' object has no attribute 'exclude'
Whether it is necessary to increase robustness? like:
hug/hug/interface.py
Line 936 in 8b5ac00
hug/hug/interface.py
Line 935 in 8b5ac00
potential_handler
The handler may just be a function that does not call hug.exception(SomeException, potential_handler) injects the handle
And it is directly called
http.add_exception_handler
method to inject an exception handlerThis situation results in an AttributeError
Whether it is necessary to increase robustness? like:
The text was updated successfully, but these errors were encountered: