Skip to content

Commit

Permalink
Set default delay
Browse files Browse the repository at this point in the history
  • Loading branch information
e1mo committed Jan 10, 2021
1 parent 9f1d0f4 commit 1e5d120
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion vpapp/management/commands/scrape.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ def handle(self, *args, **options):

def ensure_dely(self, date, delay = None):
if not delay:
delay = settings.VPAPP_SCRAPE_DELAY
try:
delay = settings.VPAPP_SCRAPE_DELAY
except AttributeError:
delay = 600

qs = LastCheck.objects.filter(date=date)
if not qs.exists():
Expand Down

0 comments on commit 1e5d120

Please sign in to comment.