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":
|
if info["InfoChannelRef"]["value"] != "Perturbation":
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
if "Message" not in info["Content"]:
|
||||||
|
continue
|
||||||
|
|
||||||
for msg in info["Content"]["Message"]:
|
for msg in info["Content"]["Message"]:
|
||||||
if msg["MessageType"] != "TEXT_ONLY":
|
if msg["MessageType"] != "TEXT_ONLY":
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user