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

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project version="4"> <project version="4">
<component name="ProjectTasksOptions"> <component name="ProjectTasksOptions">
<TaskOptions isEnabled="true"> <TaskOptions isEnabled="false">
<option name="arguments" value="$FilePath$" /> <option name="arguments" value="$FilePath$" />
<option name="checkSyntaxErrors" value="true" /> <option name="checkSyntaxErrors" value="true" />
<option name="description" /> <option name="description" />

View File

@ -104,7 +104,7 @@ class API:
if isinstance(resp, bytes): if isinstance(resp, bytes):
break 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) await asyncio.sleep(resp["retry_after_ms"] / 1000)
else: else:
break break

1
requirements.txt Normal file
View File

@ -0,0 +1 @@
aiohttp