Skip to content

Commit

Permalink
Fix googleapis#302 again. Missed the initial check
Browse files Browse the repository at this point in the history
  • Loading branch information
Alejandro Casanovas committed Sep 12, 2019
1 parent b8b8e62 commit 0546c9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions O365/mailbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ def get_message(self, object_id=None, query=None, *, download_attachments=False)
:return: one Message
:rtype: Message or None
"""
if object_id is not None and query is not None:
raise ValueError('Must provide object id or query but not both.')
if object_id is None and query is None:
raise ValueError('Must provide object id or query.')

if object_id is not None:
url = self.build_url(self._endpoints.get('message').format(id=object_id))
Expand Down

0 comments on commit 0546c9d

Please sign in to comment.