diff --git a/main.go b/main.go index ef32890..505de4f 100644 --- a/main.go +++ b/main.go @@ -226,6 +226,10 @@ func main() { //check to see if already embeded var content YoutubeWidget err = client.StateEvent(room, event.NewEventType("im.vector.modular.widgets"), "dimension-m.video-simp-"+v.Name, &content) + if err != nil { + log.Printf("error getting state event in room %v: %v", room, err) + continue + } if content.ID == "" { if v.AnnounceLive { client.SendText(room, v.LiveMsg)