sarumont / py-trello

Python API wrapper around Trello's API
BSD 3-Clause "New" or "Revised" License
945 stars 329 forks source link

Issue adding checklist items #91

Open josephmisiti opened 9 years ago

josephmisiti commented 9 years ago

When I add them, they are added successfully, but then I am seeing a TypeError I have to catch:

  File "/srv/www/cinematique/cin/core/management/commands/test_trello.py", line 55, in handle
    'Cinematique'
  File "/srv/www/cinematique/cin/core/trello_api.py", line 65, in add_checklist_to_card
    checklist = card.add_checklist(name,check_list_items)
  File "/opt/envs/cinematique/local/lib/python2.7/site-packages/trello/__init__.py", line 683, in add_checklist
    self.fetch()
  File "/opt/envs/cinematique/local/lib/python2.7/site-packages/trello/__init__.py", line 577, in fetch
    self.due = json_obj.get('due', '')[:10]
TypeError: 'NoneType' object has no attribute '__getitem__'
josephmisiti commented 9 years ago

I can provide a pull request for this and #63 if that would be helpful

sarumont commented 9 years ago

Joseph,

That would be helpful. I'm on holiday currently, so I can't get to it for another week at least.

On Wed, Jun 3, 2015, 21:37 Joseph Misiti notifications@github.com wrote:

I can provide a pull request for this and #63 https://github.com/sarumont/py-trello/issues/63 if that would be helpful

— Reply to this email directly or view it on GitHub https://github.com/sarumont/py-trello/issues/91#issuecomment-108591081.