ratp: Don't fail if no message
This commit is contained in:
parent
d7d9fe8a6d
commit
ad75524ae6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user