Skip to content

Commit

Permalink
Do not disable thumbnail on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Salamek committed Mar 28, 2018
1 parent aec9827 commit 8dec623
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blacklist/tasks/blacklist.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ def crawl_blacklist(task_id: str=None) -> None:
blacklist = Blacklist()
blacklist.dns = dns
blacklist.last_crawl = None
blacklist.thumbnail = False
blacklist.bank_account = bank_account if bank_account else None
blacklist.dns_date_published = dns_date_published
blacklist.dns_date_removed = dns_date_removed
Expand Down Expand Up @@ -199,7 +200,6 @@ def crawl_dns_info(task_id: str=None, only_new: bool=False) -> None:
blacklist_detail.thumbnail = True
except Exception as e:
print('Failed to obtain DNS thumbnail: {}'.format(e))
blacklist_detail.thumbnail = False

# Check redirect URL
check_url = fix_url(blacklist_detail.dns)
Expand Down

0 comments on commit 8dec623

Please sign in to comment.