From de2e8d014a44b397bbf956a633777862566de00a Mon Sep 17 00:00:00 2001 From: Steve Date: Sun, 14 May 2023 17:39:08 -0400 Subject: [PATCH] check error --- main.go | 4 ++++ 1 file changed, 4 insertions(+) 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)