Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
lloesche committed Apr 16, 2024
1 parent 8835972 commit 3940824
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion fixinventorydata/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,11 @@ def gen_gcp_regions() -> dict:
if len(long_region) == 0:
previous_element = loc.previous_element
while previous_element:
if previous_element.name == "a" and 'cloud-link' in previous_element.get('class', []) and len(previous_element.text.strip()) > 2:
if (
previous_element.name == "a"
and "cloud-link" in previous_element.get("class", [])
and len(previous_element.text.strip()) > 2
):
long_region = previous_element.text.strip()
break
previous_element = previous_element.previous_element
Expand Down

0 comments on commit 3940824

Please sign in to comment.