fix indentation (facepalm)

This commit is contained in:
Valentin Boettcher 2024-11-17 13:33:10 -05:00
parent e481817dc6
commit 722bf78b60
No known key found for this signature in database
GPG key ID: E034E12B7AF56ACE

View file

@ -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