mirror of
https://github.com/vale981/kindle_fetch
synced 2025-03-05 09:01:39 -05:00
fix indentation (facepalm)
This commit is contained in:
parent
e481817dc6
commit
722bf78b60
1 changed files with 28 additions and 28 deletions
|
@ -97,12 +97,12 @@ async def wait_for_new_message(imap_client, kindle_dir, latest_path):
|
||||||
try:
|
try:
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
LOGGER.debug("waiting for new message")
|
LOGGER.info("waiting for new message")
|
||||||
|
|
||||||
idle_task = await imap_client.idle_start(timeout=float("inf"))
|
idle_task = await imap_client.idle_start(timeout=float("inf"))
|
||||||
msg = await imap_client.wait_server_push()
|
msg = await imap_client.wait_server_push()
|
||||||
imap_client.idle_done()
|
imap_client.idle_done()
|
||||||
await asyncio.wait_for(idle_task, timeout=10)
|
await asyncio.wait_for(idle_task, timeout=float("inf"))
|
||||||
|
|
||||||
except TimeoutError:
|
except TimeoutError:
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Add table
Reference in a new issue