Corrected task data validation to not raise error when due_date is empty

This commit is contained in:
Marcin-Ramotowski 2025-04-13 14:15:24 +00:00
parent 14208fd8e7
commit 2278f0376b

View File

@ -100,6 +100,7 @@ def check_if_task_exists(task):
def validate_task_data(task):
due_date = task.get('due_date')
if due_date:
try:
datetime.strptime(due_date, '%d-%m-%Y %H:%M')
except ValueError: