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
Hi, it appears that the on_exception is called on raising of Exception and not BaseException and hence KeyboardInterrupt is not caught. I believe this is by design so can we have an option to allow for even BaseExceptions like KeyboardInterrupt to invoke on_exception callback as well.
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
-
Hi, it appears that the
on_exception
is called on raising ofException
and notBaseException
and henceKeyboardInterrupt
is not caught. I believe this is by design so can we have an option to allow for evenBaseExceptions
likeKeyboardInterrupt
to invokeon_exception
callback as well.Thanks
Beta Was this translation helpful? Give feedback.
All reactions