'Gets the given torrent from the torrent_store database.
:param infohash: the given infohash binary
:return: the torrent data if exists, None otherwise'

def get_collected_torrent(self, infohash):

    if (not self.config.get_torrent_store_enabled()):
        raise OperationNotEnabledByConfigurationException('torrent_store    is    not    enabled')
    return self.lm.torrent_store.get(hexlify(infohash))
