so if there were no pubkey, it has thrown an attribtue error?