Please use ```except AssertError as e``` form.