error in todo tasks #157

Closed
opened 2025-02-06 11:39:17 -08:00 by tdavis6 · 0 comments
tdavis6 commented 2025-02-06 11:39:17 -08:00 (Migrated from github.com)
CRITICAL:root:Error sending email: '<' not supported between instances of 'NoneType' and 'datetime.datetime'

CRITICAL:root:Traceback: Traceback (most recent call last):

  File "/app/src/main.py", line 378, in prepare_send_email

    todo_string = get_todo() or ""

                  ^^^^^^^^^^

  File "/app/src/main.py", line 323, in get_todo

    todo = get_todo_tasks(

           ^^^^^^^^^^^^^^^

  File "/app/src/get_todo_tasks.py", line 30, in get_todo_tasks

    tasks_text += process_tasks(

                  ^^^^^^^^^^^^^^

  File "/app/src/get_todo_tasks.py", line 94, in process_tasks

    tasks.sort(key=lambda x: (x[1], -x[2]))

TypeError: '<' not supported between instances of 'NoneType' and 'datetime.datetime'
``` CRITICAL:root:Error sending email: '<' not supported between instances of 'NoneType' and 'datetime.datetime' CRITICAL:root:Traceback: Traceback (most recent call last): File "/app/src/main.py", line 378, in prepare_send_email todo_string = get_todo() or "" ^^^^^^^^^^ File "/app/src/main.py", line 323, in get_todo todo = get_todo_tasks( ^^^^^^^^^^^^^^^ File "/app/src/get_todo_tasks.py", line 30, in get_todo_tasks tasks_text += process_tasks( ^^^^^^^^^^^^^^ File "/app/src/get_todo_tasks.py", line 94, in process_tasks tasks.sort(key=lambda x: (x[1], -x[2])) TypeError: '<' not supported between instances of 'NoneType' and 'datetime.datetime' ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
tyler/dailySummaryEmail#157
No description provided.