catch eception if convert_publickey fails