Do not raise exception it got object is a basic type

Change-Id: I437cacc7103733a627ea2fd7468d86f6565b3f96