Make exceptions actually occur inside the try-except block