TypeError exception replaced with InvalidArgument
TypeError exception replaced with InvalidArgument