def _assert_link_secret(self, action: str):
if self._link_secret is None:<EOL><INDENT>LOGGER.debug('<STR_LIT>', action)<EOL>raise AbsentLinkSecret('<STR_LIT>'.format(action))<EOL><DEDENT>
Raise AbsentLinkSecret if link secret is not set.

:param action: action requiring link secret