We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ef08e8 commit b5bec7eCopy full SHA for b5bec7e
publish.py
@@ -11,7 +11,6 @@
11
import os
12
import re
13
import subprocess
14
-import time
15
import urllib.request
16
from urllib.error import HTTPError
17
@@ -52,13 +51,9 @@ def maybe_publish(path):
52
51
53
def main():
54
print('Starting publish...')
55
- for i, path in enumerate(TO_PUBLISH):
56
- if maybe_publish(path):
57
- if i < len(TO_PUBLISH)-1:
58
- # Sleep to allow the index to update. This should probably
59
- # check that the index is updated, or use a retry loop
60
- # instead.
61
- time.sleep(5)
+ for path in TO_PUBLISH:
+ maybe_publish(path)
+
62
print('Publish complete!')
63
64
0 commit comments