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":
|
||||
continue
|
||||
|
||||
if "Message" not in info["Content"]:
|
||||
continue
|
||||
|
||||
for msg in info["Content"]["Message"]:
|
||||
if msg["MessageType"] != "TEXT_ONLY":
|
||||
continue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue