def insert_into_database(self, root, f, mode, prefix=None, unsplitable_name=None):
        """
        Wraps the database insert to catch exceptions
        """
        try:
            self._insert_into_database(root, f, mode, prefix, unsplitable_name)
        except UnicodeDecodeError:
            logger.error('Failed to insert %r / %r / %r' % (root, f, mode))
dataset/ETHPy150Open JohnDoee/autotorrent/autotorrent/db.py/Database.insert_into_database/original