Custom Property that does not exist

I have a macro that goes through an assembly and grabs some info form Sheetmetal parts.  We have a "Part_Type" custom property that classifies the part.  Some models though do not have this property.  I am using the code below to grab this custom property, but i am getting an error when the macro gets to a part that does not have the Part_Type property.

Ptype = Part.CustomInfo2("", "Part_Type")

If Ptype <> "SHEETMETAL" Then
GoTo Skip
End If

SolidworksApi macros