Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandhunt committed Jan 26, 2020
1 parent 4f9415e commit ea7cd2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scraper.py
Expand Up @@ -215,8 +215,8 @@ def doesscrapeurlexist(scrapesitelist, scrapeurl):
if err.code == 404:
notfound = True
removeon404 = False
if scrapsite['scrapeurl']['domainmisc']:
if scrapsite['scrapeurl']['domainmisc'].find('allow_remove_on_404'):
if scrapsite['scrapefield']['domainmisc']:
if scrapsite['scrapefield']['domainmisc'].find('allow_remove_on_404'):
removeon404 = True
try:
scraperwiki.sqlite.save(unique_keys=['scrapeurl'],\
Expand Down

0 comments on commit ea7cd2f

Please sign in to comment.