summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonald Stufft <donald@stufft.io>2013-07-25 00:32:39 -0400
committerDonald Stufft <donald@stufft.io>2013-07-25 00:32:39 -0400
commit7c8ef61a6c54c82b0bd4c5d0ff5bdad67890e92a (patch)
tree0fb71401f9ed4d1c6cabf9d204d663c780cc681d
parentbef924c5061be577fcdd82b93a0a4c104f4efac4 (diff)
downloaddecorator-7c8ef61a6c54c82b0bd4c5d0ff5bdad67890e92a.tar.gz
Increase the count so we don't spin forever
-rw-r--r--tasks.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tasks.py b/tasks.py
index a2cfeda..8cc5d98 100644
--- a/tasks.py
+++ b/tasks.py
@@ -13,6 +13,8 @@ def purge_fastly_tags(domain, api_key, service_id, tags, max_tries=25):
count = 0
while all_tags and not count > max_tries:
+ count += 1
+
try:
for tag in set(all_tags):
# Build the URL