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
If the try block raises an exception which is not of type PyJsException (such as a KeyboardInterrupt), or the except block raises any exception, you would expect that exception to bubble up. However, the return in the finally overrides it, so the exception is swallowed.
This return statement will swallow any in-flight exception.
If the
try
block raises an exception which is not of typePyJsException
(such as aKeyboardInterrupt
), or theexcept
block raises any exception, you would expect that exception to bubble up. However, the return in the finally overrides it, so the exception is swallowed.See https://docs.python.org/3/tutorial/errors.html#defining-clean-up-actions.
The text was updated successfully, but these errors were encountered: