ratp: Don't fail if no message

This commit is contained in:
nemunaire 2022-08-17 10:22:48 +02:00
parent d7d9fe8a6d
commit ad75524ae6

View File

@ -151,6 +151,9 @@ class RATPWeatherModule:
if info["InfoChannelRef"]["value"] != "Perturbation":
continue
if "Message" not in info["Content"]:
continue
for msg in info["Content"]["Message"]:
if msg["MessageType"] != "TEXT_ONLY":
continue