scraper_q: Gracefully degrade to thumbnail-only when no embedly.

Between the local filesystem media provider and this change, scraper_q
is workable after a default install now.
This commit is contained in:
Neil Williams
2013-10-11 10:58:29 -07:00
parent b9f146d1e5
commit 8bdc62314a
2 changed files with 5 additions and 1 deletions

View File

@@ -483,7 +483,7 @@ function set_consumer_count {
set_consumer_count log_q 0
set_consumer_count cloudsearch_q 0
set_consumer_count scraper_q 0
set_consumer_count scraper_q 1
set_consumer_count commentstree_q 1
set_consumer_count newcomments_q 1
set_consumer_count vote_link_q 1

View File

@@ -504,6 +504,10 @@ def _fetch_embedly_service_data():
def _fetch_embedly_services():
if not g.embedly_api_key:
g.log.warning("No embedly_api_key configured. Will not use embed.ly.")
return []
service_data = _fetch_embedly_service_data()
services = []