Skip to content

Commit

Permalink
Fixed bug introduced in googleapis#231
Browse files Browse the repository at this point in the history
  • Loading branch information
Alejandro Casanovas committed Apr 22, 2019
1 parent eeb92dc commit b8609a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion O365/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ def to_api_data(self, restrict_keys=None):
if self.sender and self.sender.address:
message[cc('from')] = self._recipient_to_cloud(self.sender)

if self.categories or 'categories' in restrict_keys:
if self.categories or 'categories' in (restrict_keys or {}):
message[cc('categories')] = self.categories

if self.object_id and not self.__is_draft:
Expand Down

0 comments on commit b8609a6

Please sign in to comment.