Skip to content

Commit

Permalink
log ignore error
Browse files Browse the repository at this point in the history
  • Loading branch information
rmatsuoka committed Sep 13, 2023
1 parent 75e520e commit ccc0f85
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions twitter/recent.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package twitter2

import (
"fmt"
"log"
"net/url"
"strings"

Expand Down Expand Up @@ -86,6 +87,7 @@ func (c *Client) RecentSearch(q string) ([]*Tweet, error) {
for _, d := range resp.Data {
t, err := tweetResponseToTweet(&d, users, includesTweets)
if err != nil {
log.Print(err)
continue
}
tweets = append(tweets, t)
Expand Down
2 changes: 2 additions & 0 deletions twitter/tweets.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package twitter2

import (
"fmt"
"log"
"net/url"
"strings"

Expand Down Expand Up @@ -69,6 +70,7 @@ func (c *Client) Tweets(ids []string) ([]*Tweet, error) {
for _, d := range resp.Data {
t, err := tweetResponseToTweet(&d, users, includesTweets)
if err != nil {
log.Print(err)
continue
}
tweets = append(tweets, t)
Expand Down

0 comments on commit ccc0f85

Please sign in to comment.