def warn(self, text):
        """
        Notify the user (non-interactively) of the provided text, by writing it
        to the console.

        @param text: Some information the user is to be made aware of.
        @type text: L{bytes}
        """
        try:
            with closing(self.opener()) as f:
                f.write(text)
        except:
            log.err()

        Notify the user (non-interactively) of the provided text, by writing it
        to the console.

        @param text: Some information the user is to be made aware of.
        @type text: L{bytes}
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/conch/client/knownhosts.py