This would have raised an error previously if `raise_exception` was true.