# if this is a legacy credential, write error and bail out
if isinstance (str, StringType) and str.strip().startswith("-----"):
# if this is a legacy credential, write error and bail out
if isinstance (str, StringType) and str.strip().startswith("-----"):