Add Requirements and fix bug in send response
This commit is contained in:
parent
804148dfe3
commit
ecec21094a
2
.idea/watcherTasks.xml
generated
2
.idea/watcherTasks.xml
generated
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectTasksOptions">
|
||||
<TaskOptions isEnabled="true">
|
||||
<TaskOptions isEnabled="false">
|
||||
<option name="arguments" value="$FilePath$" />
|
||||
<option name="checkSyntaxErrors" value="true" />
|
||||
<option name="description" />
|
||||
|
||||
@ -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
|
||||
|
||||
1
requirements.txt
Normal file
1
requirements.txt
Normal file
@ -0,0 +1 @@
|
||||
aiohttp
|
||||
Loading…
x
Reference in New Issue
Block a user