enable skipinitialspace on the DictReader Otherwise the leading whitespace is included in fields (such as the email address) and the API (server side) doesn't strip it, causing issues. No fields have significant leading/trailing whitespace.
diff --git a/csv_uploader.py b/csv_uploader.py index 44edd54..802bb7c 100755 --- a/csv_uploader.py +++ b/csv_uploader.py
@@ -59,7 +59,7 @@ none """ with open(filename, 'rb') as csvfile: - taskreader = csv.DictReader(csvfile) + taskreader = csv.DictReader(csvfile, skipinitialspace=True) for task in taskreader: t = task