@@ -549,7 +549,9 @@ def __init__(self, parent, response_status):
549
549
super ().__init__ (protocol = parent .protocol ,
550
550
main_resource = parent .main_resource )
551
551
#: The status of the response |br| **Type:** str
552
- self .status = response_status .get (self ._cc ('response' ), 'none' )
552
+ self .status = (response_status or {}).get (
553
+ self ._cc ("response" ), "none"
554
+ ) # Deals with private events with None response_status's
553
555
self .status = None if self .status == 'none' else EventResponse .from_value (self .status )
554
556
if self .status :
555
557
#: The time the response was received |br| **Type:** datetime
@@ -871,7 +873,9 @@ def __init__(self, *, parent=None, con=None, **kwargs):
871
873
self .object_id = cloud_data .get (cc ('id' ), None )
872
874
self .__subject = cloud_data .get (cc ('subject' ),
873
875
kwargs .get ('subject' , '' ) or '' )
874
- body = cloud_data .get (cc ('body' ), {})
876
+ body = (
877
+ cloud_data .get (cc ("body" ), {}) or {}
878
+ ) # Deals with private events with None body's
875
879
self .__body = body .get (cc ('content' ), '' )
876
880
#: The type of the content. Possible values are text and html. |br| **Type:** bodyType
877
881
self .body_type = body .get (cc ('contentType' ),
0 commit comments