File tree 1 file changed +0
-5
lines changed
1 file changed +0
-5
lines changed Original file line number Diff line number Diff line change @@ -10,13 +10,10 @@ def extract_and_deserialise_attributes(container):
10
10
"""
11
11
# Cast attributes to a dictionary to avoid defaultdict-like behaviour from Pub/Sub message attributes container.
12
12
attributes = dict (get_nested_attribute (container , "attributes" ))
13
-
14
13
retry_count = attributes .get ("retry_count" )
15
14
16
15
if retry_count :
17
16
attributes ["retry_count" ] = int (retry_count )
18
- else :
19
- attributes ["retry_count" ] = None
20
17
21
18
if attributes .get ("sender_type" ) == "PARENT" :
22
19
attributes = _deserialise_question_attributes (attributes )
@@ -35,8 +32,6 @@ def _deserialise_question_attributes(attributes):
35
32
36
33
if forward_logs :
37
34
attributes ["forward_logs" ] = bool (int (forward_logs ))
38
- else :
39
- attributes ["forward_logs" ] = None
40
35
41
36
cpus = attributes .get ("cpus" )
42
37
You can’t perform that action at this time.
0 commit comments