Reraises exception if generator shouldnt yield