diff options
author | Donald Stufft <donald@stufft.io> | 2013-07-25 00:32:39 -0400 |
---|---|---|
committer | Donald Stufft <donald@stufft.io> | 2013-07-25 00:32:39 -0400 |
commit | 7c8ef61a6c54c82b0bd4c5d0ff5bdad67890e92a (patch) | |
tree | 0fb71401f9ed4d1c6cabf9d204d663c780cc681d | |
parent | bef924c5061be577fcdd82b93a0a4c104f4efac4 (diff) | |
download | decorator-7c8ef61a6c54c82b0bd4c5d0ff5bdad67890e92a.tar.gz |
Increase the count so we don't spin forever
-rw-r--r-- | tasks.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |