This fixes the basics/exception_chain.py test, also see #1500 for more info and [4300c7db] where the same change was done for the other ports.