Skip to content

Commit 6854240

Browse files
committed
Fix report target key
1 parent dfce7f1 commit 6854240

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

avwx_swift/notam.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def get_raw_text(data: dict | list[dict]) -> str:
3535
data = next(item for item in data if "formattedText" in item["NOTAMTranslation"])
3636
raw: str
3737
try:
38-
raw = data["NOTAMTranslation"]["formattedText"]["div"]
38+
raw = data["NOTAMTranslation"]["formattedText"]["div"]["#text"]
3939
# Replace newlines and remove all other HTML tags
4040
raw = raw.replace("<BR>", "\n")
4141
raw = re.sub(r"<.*?>", "", raw)

0 commit comments

Comments
 (0)