Skip to content

Commit b8609a6

Browse files
author
Alejandro Casanovas
committed
Fixed bug introduced in googleapis#231
1 parent eeb92dc commit b8609a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

O365/message.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ def to_api_data(self, restrict_keys=None):
542542
if self.sender and self.sender.address:
543543
message[cc('from')] = self._recipient_to_cloud(self.sender)
544544

545-
if self.categories or 'categories' in restrict_keys:
545+
if self.categories or 'categories' in (restrict_keys or {}):
546546
message[cc('categories')] = self.categories
547547

548548
if self.object_id and not self.__is_draft:

0 commit comments

Comments
 (0)