From 81e6f75aa491c7bfa11780dd622587cf5fff3c8f Mon Sep 17 00:00:00 2001 From: Wim Date: Mon, 2 May 2022 00:10:54 +0200 Subject: Update dependencies (#1822) --- vendor/github.com/matterbridge/matterclient/matterclient.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'vendor/github.com/matterbridge/matterclient') diff --git a/vendor/github.com/matterbridge/matterclient/matterclient.go b/vendor/github.com/matterbridge/matterclient/matterclient.go index 3a89e141..0652fe73 100644 --- a/vendor/github.com/matterbridge/matterclient/matterclient.go +++ b/vendor/github.com/matterbridge/matterclient/matterclient.go @@ -714,6 +714,10 @@ func (m *Client) SetLogLevel(level string) { } func (m *Client) HandleRatelimit(name string, resp *model.Response) error { + if resp == nil { + return fmt.Errorf("Got a nil model response from %s", name) + } + if resp.StatusCode != 429 { return fmt.Errorf("StatusCode error: %d", resp.StatusCode) } -- cgit v1.2.3