Skip to content

Commit 28c1483

Browse files
authored
Merge pull request #15 from Missing-Tech/patch-1
Fix rate limiting
2 parents 570bce2 + 4396b5f commit 28c1483

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

transloadit/assembly.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ def create(self, wait=False, resumable=True, retries=3):
111111
response = self.transloadit.get_assembly(
112112
assembly_url=response.data.get("assembly_ssl_url")
113113
)
114+
# wait a small amount between requests due to stricter rate limiting
115+
sleep(0.2)
114116

115117
if self._rate_limit_reached(response) and retries:
116118
# wait till rate limit is expired

0 commit comments

Comments
 (0)