Skip to content

Commit

Permalink
Merge pull request #27 from txstate/master
Browse files Browse the repository at this point in the history
Quick fix for issue #26
  • Loading branch information
Rachel Sanders committed Nov 18, 2014
2 parents aaf464d + d26ffce commit b57555d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyexchange/exchange2010/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ def _parse_response_for_all_events(self, response):
This function will retrieve *most* of the event data, excluding Organizer & Attendee details
"""
items = response.xpath(u'//m:FindItemResponseMessage/m:RootFolder/t:Items/t:CalendarItem', namespaces=soap_request.NAMESPACES)
if not items:
items = response.xpath(u'//m:GetItemResponseMessage/m:Items/t:CalendarItem', namespaces=soap_request.NAMESPACES)
if items:
self.count = len(items)
log.debug(u'Found %s items' % self.count)
Expand Down

0 comments on commit b57555d

Please sign in to comment.