add catch clause for AssertionError