Skip to content

Commit 93e650c

Browse files
committed
Simplify a field retrieval.
1 parent 824479d commit 93e650c

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

Utils/Dataflow/071_esConsistency/consistency.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,7 @@ def process(stage, message):
151151
log('Insufficient ES info in data:' + str(data), 'WARN')
152152
return False
153153

154-
_parent = None
155-
if '_parent' in data:
156-
_parent = data.pop('_parent')
154+
_parent = data.pop('_parent', None)
157155

158156
# Crutch. Remove unwanted (for now) fields added by Stage 016.
159157
for field in ['phys_category', 'chain_data', 'chain_id']:

0 commit comments

Comments
 (0)