Skip to content

Commit

Permalink
Merge pull request #41 from lwoydziak/empty/email
Browse files Browse the repository at this point in the history
Handle empty email for attendees.
  • Loading branch information
Rachel Sanders committed Mar 9, 2015
2 parents a4a36ba + 0bc3216 commit 7f8c181
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions dev_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ pytest-cov
httpretty
flake8
mock
requests_ntlm
9 changes: 6 additions & 3 deletions pyexchange/exchange2010/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,8 @@ def _parse_event_resources(self, response):
if u'last_response' not in attendee_properties:
attendee_properties[u'last_response'] = None

result.append(attendee_properties)
if u'email' in attendee_properties:
result.append(attendee_properties)

return result

Expand Down Expand Up @@ -683,7 +684,8 @@ def _parse_event_attendees(self, response):
if u'last_response' not in attendee_properties:
attendee_properties[u'last_response'] = None

result.append(attendee_properties)
if u'email' in attendee_properties:
result.append(attendee_properties)

optional_attendees = response.xpath(u'//m:Items/t:CalendarItem/t:OptionalAttendees/t:Attendee', namespaces=soap_request.NAMESPACES)

Expand All @@ -694,7 +696,8 @@ def _parse_event_attendees(self, response):
if u'last_response' not in attendee_properties:
attendee_properties[u'last_response'] = None

result.append(attendee_properties)
if u'email' in attendee_properties:
result.append(attendee_properties)

return result

Expand Down

0 comments on commit 7f8c181

Please sign in to comment.