diff --git a/circuit_maintenance_parser/parsers/equinix.py b/circuit_maintenance_parser/parsers/equinix.py index 3ed3fff6..d2c16258 100644 --- a/circuit_maintenance_parser/parsers/equinix.py +++ b/circuit_maintenance_parser/parsers/equinix.py @@ -81,10 +81,7 @@ def _parse_bolded(self, b_elements, data): # all circuits in the notification share the same impact if "IMPACT:" in b_elem: impact_line = b_elem.next_sibling - if impact_line.next_sibling is None: - impact_sibling_line = "" - else: - impact_sibling_line = impact_line.next_sibling + impact_sibling_line = impact_line.next_sibling or "" if "No impact to your service" in impact_line: impact = Impact.NO_IMPACT