Skip to content

Instantly share code, notes, and snippets.

@codeguru42
Created November 18, 2013 01:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codeguru42/7520720 to your computer and use it in GitHub Desktop.
Save codeguru42/7520720 to your computer and use it in GitHub Desktop.
'NoneType' object has no attribute '__getitem__'
sfTicket = [ticket for ticket in sfTickets if ticket['summary'] == issue['title']][0]
pprint(sfTicket['custom_fields']['_milestone'])
updateData = {'title' : issue['title']}
updateData['milestone'] = milestoneNumbers[sfTicket['custom_fields']['_milestone']]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment