ratp: Don't fail if no message
This commit is contained in:
parent
d7d9fe8a6d
commit
ad75524ae6
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue