fix: correct indentation for done_callback
This commit is contained in:
@@ -350,7 +350,7 @@ async def sd_module_handler(msg: Message):
|
|||||||
if "timer_task" in session and not session["timer_task"].done():
|
if "timer_task" in session and not session["timer_task"].done():
|
||||||
session["timer_task"].cancel()
|
session["timer_task"].cancel()
|
||||||
session["timer_task"] = asyncio.create_task(_wait_for_attachments_and_create(user_id, session))
|
session["timer_task"] = asyncio.create_task(_wait_for_attachments_and_create(user_id, session))
|
||||||
session["timer_task"].add_done_callback(lambda t: _on_sd_timer_done(t, user_id))
|
session["timer_task"].add_done_callback(lambda t: _on_sd_timer_done(t, user_id))
|
||||||
sd_workflow_logger.info(f"⏳ [SD] Timer started: waiting {ATTACHMENT_WAIT_TIMEOUT}s for potentially more attachments...")
|
sd_workflow_logger.info(f"⏳ [SD] Timer started: waiting {ATTACHMENT_WAIT_TIMEOUT}s for potentially more attachments...")
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -407,3 +407,4 @@ async def sd_module_handler(msg: Message):
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user