kopia lustrzana https://github.com/muesli/mastotool
Return an error instead of panicking in parseToot
rodzic
388aa2c5ec
commit
6e0c280ea1
2
stats.go
2
stats.go
|
@ -71,7 +71,7 @@ func parseToot(status *mastodon.Status, stats *stats) error {
|
|||
if status.InReplyToID == nil {
|
||||
contexts, err := client.GetStatusContext(context.Background(), status.ID)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
return err
|
||||
}
|
||||
|
||||
// handle replies for this status
|
||||
|
|
Ładowanie…
Reference in New Issue