Skip to content

Commit fbab59c

Browse files
author
Alejandro Casanovas
authored
Merge pull request googleapis#333 from NielsDebrier/master
fixed missing parentheses which throws an error when using default parameters
2 parents 5d546f0 + 537cc99 commit fbab59c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

O365/mailbox.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def get_message(self, object_id=None, query=None, *, download_attachments=False)
148148
if object_id is not None:
149149
url = self.build_url(self._endpoints.get('message').format(id=object_id))
150150
params = None
151-
if query and query.has_selects or query.has_expands:
151+
if query and (query.has_selects or query.has_expands):
152152
params = query.as_params()
153153
response = self.con.get(url, params=params)
154154
if not response:

0 commit comments

Comments
 (0)