From 62c8af4dc049a7fc0e87f090f27b54eac0ee0217 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Sat, 4 Jun 2022 14:55:27 +0100 Subject: [PATCH] eddn: Use `if '' not in :` idiom. --- plugins/eddn.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/eddn.py b/plugins/eddn.py index c934f6d7..05835a12 100644 --- a/plugins/eddn.py +++ b/plugins/eddn.py @@ -977,11 +977,11 @@ class EDDN: else: # In case Frontier add it in - if entry.get('BodyName', None) is None: + if 'BodyName' not in entry: entry['BodyName'] = this.status_body_name # Frontier are adding this in Odyssey Update 12 - if entry.get('BodyID', None) is None: + if 'BodyID' not in entry: # Only set BodyID if journal BodyName matches the Status.json one. # This avoids binary body issues. if this.status_body_name == this.body_name: