Add Requirements and fix bug in send response

This commit is contained in:
Dusty Pianalto
2019-10-20 14:56:09 -08:00
parent 804148dfe3
commit ecec21094a
3 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -104,7 +104,7 @@ class API:
if isinstance(resp, bytes):
break
if resp.get("retry_after_ms"):
if isinstance(resp, dict) and resp.get("retry_after_ms"):
await asyncio.sleep(resp["retry_after_ms"] / 1000)
else:
break