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
exception handler must trigger by bind exception raise
and the handler func args(exception) type hints is bind exception
initialize_handler re-instantiate the custom Exception and pass in the first kwargs(exception), which is actually an instance of the custom Exception.Step 5 above is equivalent to --> CustomException(CustomException()) This is a contradiction and a serious error. Excuse me, what was the purpose of designing this initialize_handler function at that time?
hug/hug/interface.py
Line 941 in 8b5ac00
hug/hug/interface.py
Line 910 in 8b5ac00
hug/hug/interface.py
Line 273 in 8b5ac00
hug/hug/interface.py
Line 359 in 8b5ac00
hug/hug/interface.py
Line 363 in 8b5ac00
exception handler must trigger by bind exception raise
and the handler func args(exception) type hints is bind exception
initialize_handler
re-instantiate the custom Exception and pass in the first kwargs(exception), which is actually an instance of the custom Exception.Step 5 above is equivalent to -->CustomException(CustomException())
This is a contradiction and a serious error. Excuse me, what was the purpose of designing this initialize_handler function at that time?reproduce:
The text was updated successfully, but these errors were encountered: