From 2d8c5d27136bb01c044b91becfbb532ebcd3327a Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Wed, 31 Dec 2014 19:25:04 +0100 Subject: [PATCH] Task: Use empty string as replacement for None when saving the task --- tasklib/task.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tasklib/task.py b/tasklib/task.py index 1fa3faa..4377f1f 100644 --- a/tasklib/task.py +++ b/tasklib/task.py @@ -302,7 +302,8 @@ class Task(TaskResource): elif field == 'depends': args.append('{0}:{1}'.format(field, self.format_depends())) else: - args.append('{0}:{1}'.format(field, self._data[field])) + # Use empty string to substitute for None value + args.append('{0}:{1}'.format(field, self._data[field] or '')) # If we're modifying saved task, simply pass on all modified fields if self.saved: -- 2.39.5