mirror of
https://github.com/vale981/kindle_fetch
synced 2025-03-04 16:41:38 -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:
|
||||
while True:
|
||||
try:
|
||||
LOGGER.debug("waiting for new message")
|
||||
LOGGER.info("waiting for new message")
|
||||
|
||||
idle_task = await imap_client.idle_start(timeout=float("inf"))
|
||||
msg = await imap_client.wait_server_push()
|
||||
imap_client.idle_done()
|
||||
await asyncio.wait_for(idle_task, timeout=10)
|
||||
await asyncio.wait_for(idle_task, timeout=float("inf"))
|
||||
|
||||
except TimeoutError:
|
||||
continue
|
||||
|
|
Loading…
Add table
Reference in a new issue